.blog .blog__content {
  padding-top: 6.25rem;
  padding-bottom: 6.25rem;
}
.blog {
  border-radius: 1.3125rem 1.3125rem 0 0;
  overflow: hidden;
  background-color: var(--body-color);
  border-top: 1px solid rgba(2, 29, 72, 0.1);
  position: relative;
  margin-top: -4.5625rem; 
  z-index: 2;
}

.blog .title {
  padding-bottom: 4.0625rem;
}

.blog .blog__post {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: start;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s linear;
}

.post__name {
  margin-bottom: auto;
  min-height: 1em;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  text-align: center;
}
.blog .blog__post .post__bottom p,
.blog .blog__post .post__bottom svg {
  transition: all 0.3s linear;
}

.blog .blog__post .blog__image {
  width: 100%;
  height: 37.5rem;
  display: block;
  border-radius: 0.3125rem;
}

.blog .blog__post .post__bottom {
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: center;
  width: 100%;
  justify-content: space-between;
  flex-grow: 1;
  color: var(--dark-blue);
  padding-top: 1.5625rem;
  gap: 0.9375rem;
}


.blog .blog__post .post__bottom svg {
  width: 1.125rem;
  height: 0.9375rem;
  stroke: var(--dark-blue);
}

@media screen and (min-width: 960px) {
.blog .blog__content {
  padding-top: 12.5625rem;
  padding-bottom: 12.375rem;
}

.blog .blog__post {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: start;
  cursor: pointer;
  transition: all 0.3s linear;
}
.post__price{
  font-family: "Mariupol";
  font-size: 1.5rem;
  font-weight: 300;

}
.post__name {
  margin-bottom: auto;
  min-height: 1em;
  font-family: "Mariupol";
  font-size: 1.5rem;
  font-weight: 600;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  text-align: center;
}

.blog .blog__post .blog__image {
  height: 31.25rem;
}

.blog .blog__post .post__bottom svg {
  width: 1.125rem;
  height: 0.9375rem;
  stroke: var(--dark-blue);
}
}
.post__image-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 0.3125rem;
}

.post__badges {
  position: absolute;
  top: 0.9375rem;
  left: 0.9375rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 2;
}

.badge {
  padding: 0.625rem 0.625rem;
  font-size: 1.125rem;
  font-weight: 600;
  text-transform: uppercase;
  font-family: "Mariupol"
}

.badge--bestseller {
  background-color: var(--light-blue);
  color: var(--dark-blue);
}

.badge--out-of-stock {
  background-color: var(--white-st); 
  color: var(--red);
}

.post__overlay-button {
  position: absolute;
  inset: 0;
  background: rgba(2, 29, 72, 0.1); 
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 1rem;
  opacity: 0; 
  transition: opacity 0.3s ease;
  z-index: 3;
}


.blog__post:hover .post__overlay-button {
  opacity: 1;
}

.blog__post:hover .blog__image {
  transform: scale(1.05); 
}

.blog__image {
  transition: transform 0.5s ease;
}
.blog .button-bottom{
  margin-top: 5.3125rem;
}
@media screen and (max-width: 959px) {
  .blog .blog__post {
    flex: 0 0 17.5rem;
  }
    
  .blog .blog__swiper .swiper-button{
    width: 3.9375rem;
    height: 3.9375rem;
  }
    
  .blog .blog__content {
    padding-right: 0px;
    padding-left: 0px;
  }
  .blog .blog__post .blog__image {
    height: 25rem;
  }
  .badge {
    font-size: 0.875rem;
  }
  .blog {
    border-radius: 0rem 0rem 0 0;
  }
}