.row {
  display: flex;
  padding: 35px;
}

.blog-side {
  width: 30%;
  border: 1px solid #d9d9d9;
  padding: inherit;
  border-radius: 8px;
  align-self: start;
}

.blog-side__window {
  margin-bottom: 35px;
}

.blog-side__window .content {
  margin-top: 20px;
}

.blog-side__window .content.hot-labels a {
  display: inline-block;
  padding: 10px;
  color: var(--primary-dark-color);
  background: #dcf2ff;
  border-radius: 6px;
  margin: 8px;
  cursor: pointer;
}

.block {
  display: block;
  width: 100%;
}

.padding-normal {
  padding: 15px 10px;
}

.time-range-filter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-direction: row-reverse;
}

.time-range-filter input {
  padding: 4px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

.order-by-filter select {
  width: 100%;
  padding: 10px 15px;
  border: 1px solid #ccc;
  border-radius: 8px;
}

.search-button {
  background: var(--primary-color);
  color: #fff;
  border-radius: 6px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  padding: 16px 0;
  cursor: pointer;
}

.blog-content {
  flex: 1;
  margin-right: 35px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: 18px;
  overflow-y: auto;
}

.post {
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 18px;
  height: auto;
  position: relative;
  overflow: hidden;
}

.post img {
  max-width: 100%;
  object-fit: cover;
  border-radius: 2px;
  aspect-ratio: 16 / 9;
  display: block;
  margin: 0 auto;
}

.post-details {
  padding: 25px 6px;
}

.post-details p,
.post-details h3 {
  padding-top: 12px;
}

.text-overflow {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.post-labels {
  display: flex;
}

.post-labels span {
  color: #0084ff;
  margin: 10px 6px;
}

.post::before,
.post::after {
  opacity: 0;
  visibility: hidden;
  transition: opacity 300ms linear;
}

.post::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
}

.post::after {
  content: "مشاهده";
  position: absolute;
  top: 50%;
  right: 50%;
  transform: translate(50%, -50%);
  color: var(--primary-dark-color)
}

.post:hover::before,
.post:hover::after {
  opacity: 1;
  visibility: visible;
}

@media (max-width: 1150px) {
  .row {
    flex-direction: column;
  }

  .row > * {
    width: 100%;
    margin: 15px 0;
  }
}

@media (max-width: 800px) {
  .blog-content {
    grid-template-columns: 1fr;
  }
}
