:root {
  --brandon-grotesque: brandon-grotesque, sans-serif;
  --proxima-nova: proxima-nova, sans-serif;
  --blue: #005E9C;
  --orange: #F07824;
  --light-blue: #32AEE4;
  --very-dark-blue: #002535;
  --background-gray: #F1F3F4;
  --max-width: calc(1200px + 30px * 2);
  --content-width: 1200px;
  --content-padding: 30px;
  --phone: 768px;
  --tablet: 1280px;
  --columns-collapse: 781px;
}
@media screen and (max-width: 768px) {
  :root {
    --content-padding: 20px;
  }
}
@media screen and (max-width: 350px) {
  :root {
    --content-padding: 15px;
  }
}

.posts-container {
  display: flex;
  gap: 32px 14px;
  flex-wrap: wrap;
  margin-top: 76px;
}
.posts-container .post {
  border-radius: 10px;
  background: var(--background-gray);
  padding-block: 43px;
  padding-inline: 43px 26px;
  display: flex;
  position: relative;
  width: calc(50% - 7px);
}
@media screen and (max-width: 768px) {
  .posts-container .post {
    width: 100%;
  }
}
@media screen and (max-width: 768px) {
  .posts-container .post {
    padding-inline: 20px;
  }
}
.posts-container .post .post-content {
  width: min(434px, 100%);
  align-self: center;
}
.posts-container .post .post-content .post-category {
  min-width: 119px;
  background-color: #005E9C;
  width: -moz-fit-content;
  width: fit-content;
  color: white;
  text-align: center;
  border-radius: 5px;
  min-height: 26px;
  font-size: 13px;
  font-weight: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  position: absolute;
  top: -13px;
  right: 40px;
}
.posts-container .post .post-content .post-date {
  color: var(--blue);
  font-size: 16px;
  margin-bottom: 15px;
}
.posts-container .post .post-content .post-link {
  text-decoration: none;
}
.posts-container .post .post-content .post-excerpt {
  margin-block: 20px;
}
.posts-container .post .post-content .read-more {
  position: absolute;
  right: 26px;
  bottom: 20px;
}
@media screen and (max-width: 768px) {
  .posts-container .post .post-content .read-more {
    display: none;
  }
}
.posts-container .post .post-content .read-more img, .posts-container .post .post-content .read-more svg {
  width: 31px;
  aspect-ratio: 1/1;
}
.posts-container .post .post-content .read-more svg {
  overflow: visible;
}
.posts-container .post .post-content .read-more:hover .read-more-circle {
  fill: white;
}
.posts-container .post .post-content .read-more:hover .read-more-arrow {
  stroke: var(--blue);
}

.pagination-container {
  margin: 40px auto;
  margin-bottom: 50px !important;
}
.pagination-container .pagination {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 500;
  line-height: 24px;
}
.pagination-container .pagination .nav-links {
  display: flex;
  gap: 13px;
  align-items: center;
  justify-content: center;
}
.pagination-container .pagination .nav-links > .page-numbers:first-child:not(.prev) {
  margin-left: 100px;
}
@media screen and (max-width: 768px) {
  .pagination-container .pagination .nav-links > .page-numbers:first-child:not(.prev) {
    margin-left: 50px;
  }
}
.pagination-container .pagination .nav-links .page-numbers {
  color: black;
  text-decoration: none;
}
.pagination-container .pagination .nav-links .page-numbers.current {
  color: var(--blue);
  text-decoration: underline;
  font-weight: 700;
}
.pagination-container .pagination .nav-links .page-numbers.prev, .pagination-container .pagination .nav-links .page-numbers.next {
  text-indent: -9999px;
  background-image: url("../../images/icons/pagination-next.svg");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  display: block;
  width: 10px;
  height: 15px;
}
.pagination-container .pagination .nav-links .page-numbers.prev {
  margin-right: 40px;
}
@media screen and (max-width: 768px) {
  .pagination-container .pagination .nav-links .page-numbers.prev {
    margin-right: 25px;
  }
}
.pagination-container .pagination .nav-links .page-numbers.next {
  transform: scale(-1);
  margin-left: 40px;
}
@media screen and (max-width: 768px) {
  .pagination-container .pagination .nav-links .page-numbers.next {
    margin-left: 25px;
  }
}

.sort-filter {
  display: flex;
  justify-content: end;
  margin-block: 52px 58px;
  margin-top: 52px !important;
  gap: 25px;
}
@media screen and (max-width: 1024px) {
  .sort-filter {
    justify-content: center;
  }
}
@media screen and (max-width: 768px) {
  .sort-filter {
    justify-content: center;
    flex-direction: column;
    margin-bottom: 30px;
  }
  .sort-filter .wp-block-button {
    margin-inline: auto;
  }
}
.sort-filter select {
  width: min(357px, 100%);
  height: 35px;
  border-radius: 10px;
  border: 1px solid #D9D9D9;
  padding-inline: 21px;
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="8" height="6" viewBox="0 0 8 6" fill="none"><path d="M1 1L4 4L7 1" stroke="%23005E9C" stroke-width="2" stroke-linecap="round"/></svg>');
  background-repeat: no-repeat;
  -webkit-appearance: none;
  background-position-y: 50%;
  background-position-x: calc(100% - 16px);
  font-size: 16px;
  background-color: #D9D9D9;
  font-weight: 500;
}
@media screen and (max-width: 768px) {
  .sort-filter select {
    font-size: 14px;
    margin-inline: auto;
  }
}
.sort-filter button[type=submit] {
  margin-inline: auto;
}

.highlight-post {
  display: flex;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  max-width: 1100px;
  margin-inline: auto;
  align-items: center;
  margin-block: 75px 60px !important;
  justify-content: space-between;
}
@media screen and (max-width: 1024px) {
  .highlight-post {
    flex-direction: column;
  }
}
.highlight-post__thumbnail {
  display: inline-flex;
  max-width: 500px;
}
.highlight-post__thumbnail a {
  display: inline-flex;
}
.highlight-post__thumbnail a img {
  width: 100%;
  aspect-ratio: 515/252;
  -o-object-fit: cover;
     object-fit: cover;
  border-radius: 10px;
}
.highlight-post__content {
  max-width: 500px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  gap: 20px;
}
.highlight-post__content .post-date {
  color: #005E9C;
}
.highlight-post__content .post-link {
  text-decoration: none;
}
.highlight-post__content .post-excerpt {
  margin-bottom: 0;
}
