.tags-list {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  gap: 12px;
}

.tags-list--item {
  width: 100%;
  height: 100%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}

.tags-list--item__wrapper {
  border: 1px solid var(--background-basic);
  border-radius: 100px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
  -ms-flex-direction: row;
  flex-direction: row;
  gap: 8px;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  padding: 8px;
}
.tags-list--item .tags-list--point {
  width: 3px;
  height: 3px;
  display: block;
  border-radius: 100px;
  background: var(--text-dark-grey);
}
.dark .tags-list--item .tags-list--point {
	background: var(--white);
}

.tags-list--name {
  font-family: Wix Madefor Text;
  font-weight: 400;
  font-size: 10px;
  line-height: 1.4;
  letter-spacing: 0.02;
  color: var(--text-basic);
}

.dark .tags-list--name {
    color: var(--white);
}
.dark .tags-list--name {
    color: var(--white);
}
.blog {
  gap: 24px;
}

.blog-item {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  height: auto;
  max-height: 100%;
  padding: 20px;
  background: var(--background-light);
  border-radius: 2px;
}

.blog-item--header {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
  -ms-flex-direction: row;
  flex-direction: row;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}

.blog-item--picture {
  margin-top: 12px;
}

.blog-item--picture img {
  width: 100%;
  height: auto;
  -o-object-fit: contain;
  object-fit: contain;
}

.blog-item--data {
  color: var(--main-basic);
  font-family: Wix Madefor Text;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: 0;
}

.blog-item--wrapper-title {
  width: 100%;
  display: block;
  position: relative;
}

.blog-item--title {
	font-family: Unbounded;
	font-weight: 200;
	font-size: 20px;
	line-height: 1.5;
	letter-spacing: 0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	max-width: 70%;
	width: 100%;
   margin-top: 0;
}

.blog-item--title::after {
  content: url(/local/templates/jamit-template/assets/img/blog-link.svg);
  position: absolute;
  right: 0;
  top: 0;
  -webkit-transition: all 0.4s;
  transition: all 0.4s;
}

.blog-item:hover .blog-item--title::after,
.blog-item:active .blog-item--title::after {
  -webkit-transform: rotate(55deg);
  -ms-transform: rotate(55deg);
  transform: rotate(55deg);
}

.blog-item--author {
  font-family: Wix Madefor Text;
  font-weight: 400;
  font-size: 12px;
  line-height: 1.3;
  color: var(--text-light);
}
.blog-item {
    height: 335px;
    padding: 20px;
     position: relative;

}
.blog-item.show-bg {
    background: var(--background-light); /* Исходный фон */
    transition: all 1s ease-in-out;
}

.blog-item.show-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: var(--bg-post);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    z-index: 0;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.blog-item.show-bg:hover::after {
    opacity: 1;
}

.blog-item .blog-item--header,
.blog-item .blog-item--content,
.blog-item .blog-item--footer {
    position: relative;
    z-index: 1;
    transition: color 0.3s ease-in-out;
}

/* Опционально: меняем цвет текста при ховере для лучшей читаемости */
.blog-item:hover .tags-list--item__wrapper {
  border: 1px solid var(--background-basic);
  background: var(--background-light);
}
.dark .blog-item:hover .tags-list--point{
  background: var(--text-dark-grey);
}
.dark .blog-item:hover .tags-list--name {
  color: var(--text-basic);
}

.blog-item:not(.no-bg):hover .blog-item--title,
.blog-item:not(.no-bg):hover .blog-item--data
{
  color: var(--white);
}

.dark .blog-item .blog-item--title:after,
.blog-item:not(.no-bg):hover .blog-item--title:after {
        content: url(/local/templates/jamit-template/assets/img/blog-link-white.svg);
    }

@media (min-width: 375px) {
  .blog-item--title {
    margin-top: 0;
    max-width: 85%;
    width: 100%;
    font-size: 16px;
    color: var(--text-basic);
  }
}

@media (min-width: 768px) {
	.blog-item {
        height: 298px;
        padding: 20px;
    }
}

@media (min-width: 1350px) {
	.blog-item {
        height: 320px;
        padding: 24px;
    }
    .blog-item--title {
        margin-top: 0px;
        line-height: 1.5;
    }
}
