.listing-post .listing-title {
  margin-bottom: 32px;
}
.listing-post .post-list {
  display: none;
  gap: 12px;
}
.listing-post .post-list.show {
  display: flex;
}
.listing-post .post-list .post-item {
  width: 100%;
  align-items: flex-end;
  border: 1px solid #ececec;
  height: 153px;
}
.listing-post .post-item .post-item-content {
  padding: 16px;
  align-items: flex-start;
  gap: 4px;
}
.listing-post .post-item .post-type {
  gap: 4px;
}
.listing-post .post-item .post-category {
  padding: 6px 8px;
  max-width: calc(50% - 2px);
}
.listing-post .post-item .post-category > span {
  text-overflow: ellipsis;
  text-wrap: nowrap;
}
.listing-post .post-item .post-date {
  color: #999;
  text-align: right;
  text-overflow: ellipsis;
  text-wrap: nowrap;
  width: auto;
  max-width: calc(50% - 2px);
}
.listing-post .post-item .post-title {
  gap: 12px;
}
.listing-post .post-item .post-type {
  gap: 4px;
}
.listing-post .post-item .heading.post-heading {
  text-overflow: ellipsis;
  height: fit-content;
  height: -webkit-fit-content;
  display: -webkit-box;
  font-size: 20px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  text-wrap: initial;
}
.listing-post .post-item .text.post-description {
  text-overflow: ellipsis;
  margin-bottom: 0;
  max-width: 100%;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  text-wrap: initial;
  -webkit-line-clamp: 2;
}
.listing-post .post-item .post-detail {
  margin-top: auto;
  justify-content: flex-start;
}
.listing-post .post-item .post-detail .post-view {
  color: #999;
}
.listing-post .pagination {
  margin-top: 12px;
}
/* first child */
@media (max-width: 767px) {
  .listing-post .post-list .post-item {
    height: 415px;
    flex-direction: column;
    justify-content: flex-end;
  }
  .listing-post .post-list .post-item .post-image-link {
    height: 194px;
    display: block !important;
    flex-grow: 1;
  }
  .listing-post .post-list .post-item.post-item-content {
    justify-content: flex-end;
  }
  .listing-post .post-list .post-item .post-item-content .post-category {
    padding: 0px 8px;
  }
}
/* ***tablet*** */
@media (min-width: 768px) {
  .listing-post .listing-title {
    margin-bottom: 40px;
  }
  .listing-post .post-list {
    gap: 18px;
    flex-wrap: wrap;
    flex-direction: row;
  }
  .listing-post .post-list .post-item {
    height: 380px;
    justify-content: flex-end;
    align-items: flex-start;
    width: calc(100% / 3 - 12px);
  }
  .listing-post .post-list .post-item .post-image-link {
    min-height: 172px;
    width: 100%;
    flex-grow: 1;
  }
  .listing-post .post-item .post-item-content {
    justify-content: flex-end;
    gap: 8px;
    padding: 20px;
    flex-shrink: 0;
    height: 202px;
  }
  .listing-post .post-list .post-item:first-child .post-item-content,
  .listing-post .post-list .post-item:nth-child(2) .post-item-content {
    height: 210px;
  }
  .listing-post .post-item .post-category {
    padding: 4px 8px;
  }
  .listing-post .post-item .post-title {
    gap: 8px;
  }
  /* first and second child */
  .listing-post .post-list .post-item:first-child,
  .listing-post .post-list .post-item:nth-child(2) {
    flex-basis: 50%;
    width: calc(100% / 2 - 9px);
    max-width: calc(100% / 2 - 9px);
  }
  .listing-post .post-list .post-item:first-child,
  .listing-post .post-list .post-item:nth-child(2) {
    height: 410px;
  }
  .listing-post .post-item:first-child .heading.post-heading,
  .listing-post .post-item:nth-child(2) .heading.post-heading {
    font-size: 22px;
  }
  .listing-post .pagination {
    margin-top: 18px;
  }
}
@media (min-width: 992px) {
  .listing-post .post-list .post-item:first-child,
  .listing-post .post-list .post-item:nth-child(2) {
    height: 480px;
  }
  .listing-post .post-list .post-item:first-child .post-item-content,
  .listing-post .post-list .post-item:nth-child(2) .post-item-content {
    height: 216px;
  }
  .listing-post .post-item:first-child .heading.post-heading,
  .listing-post .post-item:nth-child(2) .heading.post-heading {
    font-size: 24px;
  }
  .listing-post .pagination {
    margin-top: 20px;
  }
}
@media (max-width: 1279px) {
  .listing-post .post-item .post-detail .post-view {
    display: none !important;
  }
}
@media (min-width: 1280px) {
  .listing-post .listing-title {
    margin-bottom: 48px;
  }
  .listing-post .post-list {
    gap: 24px;
  }
  .listing-post .post-list .post-item {
    height: 494px;
    width: calc(100% / 3 - 16px);
  }
  .listing-post .post-list .post-item .post-image-link {
    height: 231px;
    flex-grow: unset;
  }
  .listing-post .post-item .post-item-content {
    gap: 24px;
    padding: 24px;
    height: auto;
    flex-grow: 1;
  }
  .listing-post .post-item .post-title {
    gap: 16px;
  }
  .listing-post .post-item .post-category {
    padding: 4px 12px;
  }
  .listing-post .post-item .post-detail {
    justify-content: space-between;
  }
  .listing-post .post-item .post-detail .post-view > i {
    font-size: 24px;
  }
  /* first and second child */
  .listing-post .post-list .post-item:first-child,
  .listing-post .post-list .post-item:nth-child(2) {
    width: calc(100% / 2 - 12px);
    max-width: calc(100% / 2 - 12px);
  }
  .listing-post .post-list .post-item:first-child,
  .listing-post .post-list .post-item:nth-child(2) {
    height: 631px;
  }
  .listing-post .post-list .post-item:first-child .post-image-link,
  .listing-post .post-list .post-item:nth-child(2) .post-image-link {
    height: auto;
    flex-grow: 1;
  }
  .listing-post .post-list .post-item:first-child .post-item-content,
  .listing-post .post-list .post-item:nth-child(2) .post-item-content {
    height: 304px;
    flex-grow: unset;
  }
  .listing-post .post-item:first-child .heading.post-heading,
  .listing-post .post-item:nth-child(2) .heading.post-heading {
    font-size: 30px;
    letter-spacing: -0.6px;
  }
  .listing-post .pagination {
    margin-top: 24px;
  }
  .listing-post .pagination:has(.list-arrow) {
    margin-top: 40px;
  }
}
