.posts__loader {
  text-align: center;
  padding: 20px;
  color: #333; /* Цвет текста */
  opacity: 0;
  transition: all 0.45s ease;
}

.posts__loader.loading {
  opacity: 1;
}

.posts__banner {
  padding: 0px 0 90px;
  margin: 0 auto;
  max-width: 1920px;
}

.posts__banner-section {
  margin-bottom: 10px;
}

.posts__banner-title {
  margin-bottom: 24px;
}

.posts__content {
  max-width: 1920px;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  gap: 34px;
  position: relative;
}

.posts__ellipse {
  position: absolute;
  right: -20px;
  top: 40px;
  z-index: 0;
  pointer-events: none;
}

.posts__small-posts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px; 
}

.main__small-posts-grid {
  gap: 60px 40px;
}

.posts__category-link {
  padding: 12px 16px;
  display: block;
}

.posts__category-item {
  transition: background-color 0.3s ease-in-out;
  -webkit-transition: background-color 0.3s ease-in-out;
  -moz-transition: background-color 0.3s ease-in-out;
  -ms-transition: background-color 0.3s ease-in-out;
  -o-transition: background-color 0.3s ease-in-out;
  border-radius: 8px;
  -webkit-border-radius: 8px;
  -moz-border-radius: 8px;
  -ms-border-radius: 8px;
  -o-border-radius: 8px;
}

.posts__category-item:hover {
  background-color: #f4f4f4 !important;
}

.posts__category-item.active {
  background-color: #ee2424;
}

.posts__category-item.active:hover {
  background-color: #ee2424 !important;
}

.posts__category-item.active a {
  color: #fff !important;
}

.posts__posts-title {
  margin-bottom: 30px;
}

.posts__categories-title {
  margin-bottom: 24px;
}

.posts__large-post {
  display: flex;
  margin-bottom: 90px;
}

.posts__large-post-thumbnail {
  flex: 0 0 500px;
  margin-right: 48px;
}
.posts__large-post-thumbnail a {
  display: block;
}
.posts__large-post-thumbnail img {
  width: 100%;
}
.posts__large-post-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.posts__small-posts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-bottom: 100px;
}

.posts__small-post-thumbnail img {
  width: 100%;
  height: 100%;
  min-height: 365px;
  max-height: 365px;
  object-fit: cover;
  border-radius: 16px;
}

.posts__small-post {
  border-radius: 8px;
}

.posts__post-category {
  background-color: #f4f4f4;
  padding: 4px 8px;
}

.posts__small-post-thumbnail {
  margin-bottom: 24px;
}

.posts__post-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

.posts__post-about {
  display: flex;
  gap: 8px;
  align-items: center;
}

.posts__read-more {
  display: flex;
  gap: 8px;
  align-items: center;
  width: fit-content;
}

/* Responsive */

/* small desktops */
@media (max-width: 1200px) {
  .posts__content {
    gap: 28px;
  }

  .posts__large-post-thumbnail {
    flex: 0 0 440px;
    margin-right: 36px;
  }

  .posts__large-post-thumbnail img {
    width: 100%;
  }

  .posts__small-posts-grid {
    gap: 24px;
    margin-bottom: 80px;
  }
}

/* Tablets */
@media (max-width: 992px) {
  .posts__content {
    flex-direction: column;
    gap: 32px;
  }

  .posts__large-post-thumbnail {
    flex: 0 0 380px;
    margin-right: 28px;
  }
}

/* Small tablets */
@media (max-width: 768px) {
  .posts__banner {
    padding: 0 0 30px;
  }

  .posts__banner-title {
    font-size: 40px;
    margin-bottom: 20px;
  }

  .posts__ellipse {
    top: 20px;
    max-width: 150px;
    height: auto;
  }

  .posts__categories-title {
    margin-bottom: 20px;
  }

  .posts__large-post {
    flex-direction: column;
    margin-bottom: 64px;
  }

  .posts__large-post-thumbnail {
    flex: 0 0 auto;
    margin-right: 0;
    margin-bottom: 20px;
  }

  .posts__large-post-thumbnail img {
    width: 100%;
  }

  .posts__small-posts-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 64px;
  }

  .posts__post-content {
    gap: 6px;
    margin-bottom: 20px;
  }

  .posts__posts-title {
    margin-bottom: 24px;
  }

  .posts__category-link {
    padding: 10px 14px;
  }
}

/* Mobile */
@media (max-width: 576px) {
  .posts__banner-title {
    font-size: 36px;
    margin-bottom: 16px;
  }

  .posts__ellipse {
    top: 10px;
    max-width: 100px;
    height: auto;
  }

  .posts__categories-title {
    margin-bottom: 16px;
  }

  .posts__large-post {
    margin-bottom: 48px;
  }

  .posts__small-posts-grid {
    gap: 16px;
    margin-bottom: 48px;
  }

  .posts__small-post-thumbnail {
    margin-bottom: 16px;
  }

  .posts__posts-title {
    margin-bottom: 20px;
  }

  .posts__category-link {
    padding: 8px 12px;
  }
}

.main__post-description, .posts__post-description {
  max-height: 70px;
  height: 70px;
}

.main__post-description p, .posts__post-description p {
  text-overflow: ellipsis;
  overflow: hidden;
  height: 100%;
}