.post-search-widget {
  position: relative;
  display: flex;
  flex-direction: row;
  gap: 24px;
}

/*Quantity of Posts */
.post-search-widget .quantity {
  position: absolute;
  top: -88px;
  left: 0;
  color: var(--Gray-Gray-500, #606060);
  font-family: "Hanken Grotesk";
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 150%;
  padding: 12px 24px;
  border-radius: 32px;
  background: var(--Gray-Gray-100, #161616);
}

.post-search-widget .quantity.mobile {
  position: relative;
  top: 0;
  width: fit-content;
  font-size: 14px;
  padding: 10px 18px;
  display: none;
}

/*Left Blcok Styles */
.post-search-widget .left-block {
  width: calc(70% - 12px);
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.post-search-widget .filtered-posts {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.post-search-widget .filtered-posts .card {
  display: flex;
  flex-direction: row;
  gap: 24px;
  height: 201px;
}

.post-search-widget .side-bar {
  width: calc(30% - 12px);
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.post-search-widget .filtered-posts .card .featured-img {
  position: relative;
  width: 267px;
  height: 100%;
  aspect-ratio: 89 / 67;
  overflow: hidden;
  border-radius: 8px;
}

.post-search-widget .filtered-posts .card .featured-img .category {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 8px;
  background-color: var(--Default-Black, #000);
  color: var(--Default-White, #fff);
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-weight: 400;
  font-size: 12px;
  border-radius: 16px;
  z-index: 1;
  opacity: 0;
  transition: 0.3s;
}

.post-search-widget .filtered-posts .card:hover .featured-img .category {
  opacity: 1;
  transition: 0.3s;
}

.post-search-widget .filtered-posts .card .featured-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1);
  transition: 0.3s;
}

.post-search-widget .filtered-posts .card:hover .featured-img img {
  transform: scale(1.15);
  transition: 0.3s;
}

.post-search-widget .filtered-posts .card .info {
  width: calc((100% - 24px) - 267px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
}

.post-search-widget .filtered-posts .card .info .description {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: calc((100% - 24px) - 16px);
  overflow: hidden;
}

.post-search-widget .filtered-posts .card .info .author-info {
  display: flex;
  flex-direction: row;
  gap: 12px;
  align-items: center;
}

.post-search-widget .filtered-posts .card .info .description h3 {
  color: var(--Gray-Gray-700, #ddd);
  font-family: "Hanken Grotesk";
  font-size: 24px;
  font-style: normal;
  font-weight: 700;
  line-height: 120%;
  margin: 0;
  transition: 0.3s;
}

.post-search-widget .filtered-posts .card:hover .info .description h3 {
  color: var(--Default-White, #fff);
  transition: 0.3s;
}
.post-search-widget .filtered-posts .card .info .description p,
.post-search-widget .filtered-posts .card .info .author-info p,
.post-search-widget .filtered-posts .card .info .author-info .display-name {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-weight: 400;
  line-height: 150%;
  margin: 0;
}

.post-search-widget .filtered-posts .card .info .description p {
  color: var(--Gray-Gray-300, #363636);
  font-size: 16px;
  transition: 0.3s;
}

.post-search-widget .filtered-posts .card:hover .info .description p {
  color: var(--Gray-Gray-500, #606060);
  transition: 0.3s;
}

.post-search-widget .filtered-posts .card .info .author-info p {
  color: var(--Gray-Gray-300, #363636);
  font-size: 14px;
}

.post-search-widget .filtered-posts .card .info .author-info .display-name {
  color: var(--Default-White, #fff);
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 8px;
  text-decoration-color: var(--Gray-Gray-300, #363636);
  transition: 0.3s;
}

.post-search-widget
  .filtered-posts
  .card
  .info
  .author-info
  .display-name:hover {
  text-decoration-color: var(--Default-White, #fff);
  transition: 0.3s;
}

.post-search-widget .filtered-posts .card .info .author-info .avatar {
  width: 24px;
  height: 24px;
  line-height: 0;
}

.post-search-widget .filtered-posts .card .info .author-info .avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 50%;
}

/* Pagination Styles */
.post-search-widget .left-block .pages {
  display: flex;
  flex-direction: row;
  justify-content: normal;
  align-items: center;
  gap: 12px;
  margin: 0;
}

.post-search-widget .left-block .pages .page {
  padding: 8px 16px;
  border: 1px solid var(--Gray-Gray-300, #363636);
  border-radius: 50%;
  color: var(--Default-White, #fff);
  font-family: "Hanken Grotesk";
  font-size: 16px;
  font-weight: 700;
  margin: 0;
  background-color: transparent;
  transition: 0.3s;
}

.post-search-widget .left-block .pages .page.active {
  background-color: var(--Gray-Gray-300, #363636);
}

.post-search-widget .left-block .pages .page:hover:not(.active) {
  background-color: var(--Default-White, #fff);
  border: 1px solid var(--Default-White, #fff);
  color: var(--Default-Black, #000);
  transition: 0.3s;
}

.post-search-widget .left-block .pages .older-posts,
.post-search-widget .left-block .pages .new-posts {
  position: relative;
  background-color: var(--Color-Palette-Yellow-Yellow-500, #ffc432);
  padding: 8px 24px;
  border-radius: 27px;
  color: var(--Default-Black, #000);
  font-family: "Hanken Grotesk";
  font-size: 16px;
  font-weight: 700;
  background-color: var(--Color-Palette-Yellow-Yellow-500, #ffc432);
  transition: 0.3s;
}

.post-search-widget .left-block .pages .older-posts:hover,
.post-search-widget .left-block .pages .new-posts:hover {
  background-color: var(--Color-Palette-Blue-Blue-500, #0091ff);
  transition: 0.3s;
}

.post-search-widget .left-block .pages .older-posts:after {
  content: "";
  position: absolute;
  top: 0;
  right: -40px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-image: url(assets/arrow.svg);
  background-size: 16px 16px;
  background-repeat: no-repeat;
  background-position: center;
  background-color: inherit;
}
.post-search-widget .left-block .pages .new-posts:after {
  content: "";
  position: absolute;
  top: 0;
  left: -40px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-image: url(assets/arrow.svg);
  background-size: 16px 16px;
  background-repeat: no-repeat;
  background-position: center;
  background-color: inherit;
  transform: rotate(-180deg);
}

.post-search-widget .left-block .pages .older-posts-mobile,
.post-search-widget .left-block .pages .new-posts-mobile {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-image: url(assets/arrow.svg);
  background-size: 16px 16px;
  background-repeat: no-repeat;
  background-position: center;
  background-color: var(--Color-Palette-Yellow-Yellow-500, #ffc432);
  display: none;
}
.post-search-widget .left-block .pages .new-posts-mobile {
  transform: rotate(-180deg);
}

/* Side Bar Styles */
.post-search-widget .side-bar .search {
  background: var(--Gray-Gray-100, #161616);
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 24px 36px 36px 36px;
  border-radius: 12px;
}

.post-search-widget .side-bar .search .wrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.post-search-widget .side-bar .search p {
  margin: 0;
  color: var(--Gray-Gray-700, #ddd);
  font-family: "Hanken Grotesk";
  font-size: 20px;
  font-style: normal;
  font-weight: 700;
  line-height: 150%;
}

.post-search-widget .side-bar .search input[type="text"] {
  border-radius: 8px;
  background: var(--Gray-Gray-200, #242424);
  color: var(--Gray-Gray-700, #ddd);
  padding: 12px 24px;
  font-family: "Hanken Grotesk";
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 150%;
  border: 1px solid transparent;
  transition: 0.3s;
}

.post-search-widget .side-bar .search input[type="text"]:hover {
  border: 1px solid var(--Gray-Gray-700, #ddd);
  transition: 0.3s;
}

.post-search-widget .side-bar .search input[type="text"]::placeholder {
  color: var(--Gray-Gray-600, #999);
  transition: 0.3s;
}

.post-search-widget .side-bar .search input[type="text"]:hover::placeholder {
  color: #ddd;
  transition: 0.3s;
}

.post-search-widget .search-button {
  position: relative;
  background: var(--Color-Palette-Yellow-Yellow-500, #ffc432);
  color: var(--Default-Black, #000);
  width: fit-content;
  border: none;
  font-family: "Hanken Grotesk";
  font-size: 16px;
  font-style: normal;
  font-weight: 700;
  line-height: 150%;
  border-radius: 27px;
  transition: 0.3s;
}

.post-search-widget .search-button:hover {
  background: var(--Color-Palette-Blue-Blue-500, #0091ff);
  color: var(--Default-Black, #000);
  transition: 0.3s;
}

.post-search-widget .search-button:after {
  content: "";
  position: absolute;
  top: 0;
  right: -40px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-image: url(assets/arrow.svg);
  background-size: 16px 16px;
  background-repeat: no-repeat;
  background-position: center;
  background-color: inherit;
}

.post-search-widget .side-bar .categories {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0 36px;
}

.post-search-widget .side-bar .categories h6 {
  color: var(--Gray-Gray-700, #ddd);
  font-family: "Hanken Grotesk";
  font-size: 24px;
  font-style: normal;
  font-weight: 700;
  line-height: 120%;
  margin: 0;
}

.post-search-widget .side-bar .categories ul {
  display: flex;
  flex-direction: column;
  gap: 16px;
  list-style: square;
  --list-marker-size: 3px;
  padding-left: 0;
}

.post-search-widget .side-bar .categories ul li {
  position: relative;
  display: flex;
  align-items: center;
}

.post-search-widget .side-bar .categories ul li::before {
  content: "";
  display: inline-block;
  width: var(--list-marker-size, 7px);
  height: var(--list-marker-size, 7px);
  background: var(--Gray-Gray-300, #363636);
  border-radius: 50%;
  margin-right: 10px;
  flex-shrink: 0;
}

.post-search-widget .side-bar .categories ul li a {
  color: var(--Gray-Gray-700, #ddd);
  font-family: "Hanken Grotesk";
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 150%;
  text-decoration: underline;
  text-underline-offset: 10px;
  text-decoration-color: var(--Gray-Gray-300, #363636);
  transition: 0.3s;
}

.post-search-widget .side-bar .categories ul li a:hover {
  text-decoration-color: var(--Default-White, #fff);
  transition: 0.3s;
}

.post-search-widget .filtered-posts .no-posts-msg {
  color: var(--Gray-Gray-600, #999);
  font-family: "Hanken Grotesk";
  font-size: 32px;
  font-style: normal;
  font-weight: 400;
  line-height: 130%;
}

/* Query Styles */
@media (max-width: 1200px) and (min-width: 768px) {
  .post-search-widget .side-bar .search {
    width: 60%;
    align-self: anchor-center;
  }
  .post-search-widget .side-bar .search p {
    font-size: 24px;
  }
  .post-search-widget .side-bar .categories h6 {
    font-size: 28px;
    text-align: center;
  }
  .post-search-widget .side-bar .categories ul {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
  .post-search-widget .side-bar .categories ul li {
    width: fit-content;
  }
  .post-search-widget .side-bar .categories ul li a {
    font-size: 20px;
  }
  .post-search-widget .filtered-posts .card {
    height: 180px;
    gap: 24px;
  }
  .post-search-widget .filtered-posts .card .featured-img {
    width: 256px;
    height: 100%;
  }
  .post-search-widget .filtered-posts .card .info {
    width: calc((100% - 16px) - 256px);
  }
}

@media (max-width: 1200px) {
  .post-search-widget {
    flex-direction: column-reverse;
    gap: 96px;
  }
  .post-search-widget .left-block {
    width: 100%;
  }
  .post-search-widget .side-bar {
    width: 100%;
  }
  .post-search-widget .side-bar .search input[type="text"] {
    padding: 12px 16px;
  }
  .post-search-widget .search-button {
    padding: 6px 18px;
    font-size: 15px;
  }
  .post-search-widget .search-button:after {
    height: 36px;
    width: 36px;
    background-size: 15px 15px;
    right: -36px;
  }
  .post-search-widget .side-bar .categories {
    padding: 0 24px;
  }
  .post-search-widget .side-bar .categories ul {
    gap: 12px;
  }
  .post-search-widget .side-bar .categories ul li a {
    text-underline-offset: 8px;
  }
  .post-search-widget .filtered-posts .card .info {
    gap: 12px;
    overflow: hidden;
  }
  .post-search-widget .filtered-posts .card .info .description h3 {
    font-size: 18px;
  }
  .post-search-widget .filtered-posts .card .info .description p {
    font-size: 14px;
  }
  .post-search-widget .filtered-posts .card .info .author-info {
    width: max-content;
  }
  .post-search-widget .filtered-posts .card .info .author-info p {
    font-size: 13px;
  }
  .post-search-widget .filtered-posts .card .info .author-info .display-name {
    font-size: 13px;
  }
  .post-search-widget .filtered-posts .card .featured-img .category {
    display: none;
  }
  .post-search-widget .left-block .pages {
    gap: 8px;
  }
  .post-search-widget .left-block .pages .older-posts,
  .post-search-widget .left-block .pages .new-posts {
    display: none;
  }
  .post-search-widget .left-block .pages .older-posts-mobile,
  .post-search-widget .left-block .pages .new-posts-mobile {
    display: block;
  }
  .post-search-widget .quantity:not(.mobile) {
    display: none;
  }
  .post-search-widget .quantity.mobile {
    display: block;
  }
  .post-search-widget .filtered-posts .no-posts-msg {
    font-size: 20px;
  }
}

@media (max-width: 768px) {
  .post-search-widget .side-bar .search {
    padding: 24px;
  }
  .post-search-widget .side-bar .search p {
    font-size: 16px;
  }
  .post-search-widget .side-bar .categories h6 {
    font-size: 18px;
  }
  .post-search-widget .side-bar .categories ul li a {
    font-size: 14px;
  }
  .post-search-widget .filtered-posts .card {
    height: 156px;
    gap: 16px;
  }
  .post-search-widget .filtered-posts .card .featured-img {
    width: 97px;
    height: 97px;
    aspect-ratio: 1 / 1;
  }
  .post-search-widget .filtered-posts .card .info {
    width: calc((100% - 16px) - 97px);
  }
}
