/* Container for the entire posts section */
.posts-sc-cont {
  display: flex;
  flex-direction: row-reverse;
  flex-wrap: wrap;
  column-gap: 96px;
  row-gap: 64px;
}

/* Filter buttons wrapper */
.filter-buttons {
  display: flex;
  flex-direction: column;
  max-width: fit-content;
  gap: 12px;
}

/* Individual filter button */
.filter-buttons button.filter-button {
  background-color: #eef4fe;
  color: #637394;
  border-radius: 99px;
  padding: 7px 15px;
  transition: all 0.3s ease-in-out;
  font-weight: 500;
}

.filter-buttons button.filter-button:hover {
  background-color: #1f73f1;
  color: #ffffff;
}

/* Active state for a filter button */
.filter-buttons button.filter-button.active {
  background-color: #1f73f1;
  color: #ffffff;
}

/* Container where posts are rendered */
.posts-loop {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 24px;
}

/* Wrapper for each post item */
.post-item {
  border-top: 1px solid #999;
  padding: 24px 0 0 0;
}

.post-item:last-child {
  padding-bottom: 24px;
  border-bottom: 1px solid #999;
}

.post-item a {
  display: flex;
  flex-direction: row;
  color: #212121;
  gap: 32px;
}

/* Inner body of a post item */
.post-body {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* Post title element */
.post-title {
  margin: 0;
  transition: all 0.35s ease-in-out;
}

.post-excerpt {
  transition: all 0.35s ease-in-out;
  text-align: justify;
}

.post-item:hover .post-title,
.post-item:hover .post-excerpt {
  color: #1f73f1;
}

.post-item img {
  aspect-ratio: 3 / 2;
  height: 180px;
  max-height: 180px;
  object-fit: cover;
}

/* Container for pagination buttons */
.pagination-loop {
  min-width: 100%;
  display: flex;
  flex-direction: row;
  gap: 12px;
  justify-content: center;
}

/* Individual pagination button */
.pagination-page {
  cursor: pointer;
  color: #888;
  width: 30px;
  aspect-ratio: 1 / 1;
  display: flex;
  text-align: center;
  justify-content: center;
  align-items: center;
  border-radius: 99px;
}

.pagination-page:hover {
  background-color: #eee;
}

/* Active state for the current pagination button */
.pagination-page.active {
  background-color: #1f73f1;
  color: #ffffff;
}
