.query-services .wp-block-post-template .wp-block-post > div {
  height: 100%;
}
.query-services .wp-block-post-template .wp-block-post .card-service {
  position: relative;
  overflow: hidden;
}
.query-services .wp-block-post-template .wp-block-post .card-service .wp-block-post-title {
  display: block;
  position: absolute;
  inset: 0;
}
.query-services .wp-block-post-template .wp-block-post .card-service .wp-block-post-title a {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: top;
  height: 100%;
  translate: 0 calc(100% - 80px);
  text-decoration: none;
  font-size: 20px;
  background-color: hsla(0, 0%, 100%, 0.7);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  border-left: 6px solid var(--wp--preset--color--primary);
  border-width: 6px;
  border-image-slice: 1;
  padding: var(--wp--preset--spacing--30) var(--wp--preset--spacing--40);
  border-image-source: linear-gradient(var(--wp--preset--color--primary) 32%, var(--wp--preset--color--quaternary) 100%);
  transition: all 0.3s ease-in-out;
}
.query-services .wp-block-post-template .wp-block-post .card-service .wp-block-post-title:hover a {
  translate: 0 0;
  background-color: hsla(30, 5%, 29%, 0.7);
  font-size: var(--wp--preset--font-size--large);
  color: var(--wp--preset--color--primary);
  align-items: center;
  justify-content: center;
  text-align: center;
}
.query-services .wp-block-post-template .wp-block-post .card-service .wp-block-post-title:hover a::after {
  content: "";
  font-family: var(--fa-style-family-sharp);
  font-size: 60px;
  font-weight: 300;
  line-height: 1;
}
.query-services .wp-block-post-template .wp-block-post.post-4213 .card-service a:hover::after {
  content: "\f6a3";
}
.query-services .wp-block-post-template .wp-block-post.post-4211 .card-service a:hover::after {
  content: "\f085";
}
.query-services .wp-block-post-template .wp-block-post.post-4207 .card-service a:hover::after {
  content: "\f7d9";
}
.query-services .wp-block-post-template .wp-block-post.post-4209 .card-service a:hover::after {
  content: "\f544";
}
.query-services .wp-block-post-template .wp-block-post.post-4204 .card-service a:hover::after {
  content: "\f590";
}
.query-services .wp-block-post-template .wp-block-post.post-4200 .card-service a:hover::after {
  content: "\f19d";
}

.query-blog .wp-block-post-template h3 a {
  text-decoration: none;
}
.query-blog .wp-block-post-template .wp-block-post:first-child {
  grid-column: 1;
  grid-row: 1/4;
}
.query-blog .wp-block-post-template .wp-block-post:first-child .wp-block-columns {
  flex-direction: column;
  height: 100%;
}
.query-blog .wp-block-post-template .wp-block-post:first-child .wp-block-columns .wp-block-column > .wp-block-group {
  padding: 0 var(--wp--preset--spacing--50) var(--wp--preset--spacing--50) !important;
  margin-top: auto !important;
}

@media (max-width: 781px) {
  .query-blog .wp-block-post-template .wp-block-post-featured-image img {
    height: unset;
    aspect-ratio: 18/9 !important;
    -o-object-fit: cover;
       object-fit: cover;
  }
  .query-blog .wp-block-post-template .wp-block-post:first-child .wp-block-columns {
    flex-direction: row;
  }
  .query-blog .wp-block-post-template .wp-block-columns {
    height: 100%;
  }
  .query-blog .wp-block-post-template .wp-block-columns .wp-block-column > .wp-block-group {
    padding: 0 var(--wp--preset--spacing--50) var(--wp--preset--spacing--50) !important;
    margin-top: auto !important;
  }
}
.cards-news .wp-block-post-template .wp-block-post:nth-child(4n) {
  grid-column: 1/4;
}
.cards-news .wp-block-post-template .wp-block-post:nth-child(4n) > .wp-block-group {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: stretch;
}
.cards-news .wp-block-post-template .wp-block-post:nth-child(4n) > .wp-block-group > .wp-block-group {
  flex: 1 1 50%;
  padding: var(--wp--preset--spacing--50) var(--wp--preset--spacing--50) var(--wp--preset--spacing--50) 0 !important;
}
.cards-news .wp-block-post-template .wp-block-post:nth-child(4n) .wp-block-post-featured-image {
  flex: 1 1 40%;
}
.cards-news .wp-block-post-template .wp-block-post:nth-child(4n) .wp-block-post-featured-image img {
  aspect-ratio: 20/9;
  height: 100%;
}

@media (max-width: 1300px) {
  .cards-news .wp-block-post-template {
    row-gap: var(--wp--preset--spacing--50);
    -moz-column-gap: var(--wp--preset--spacing--40);
         column-gap: var(--wp--preset--spacing--40);
  }
}
@media (max-width: 980px) {
  .cards-news .wp-block-post-template {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: var(--wp--preset--spacing--40);
  }
  .cards-news .wp-block-post-template .wp-block-post:nth-child(4n) .wp-block-post-featured-image img {
    aspect-ratio: 3/2 !important;
  }
  .cards-news .wp-block-post-template .wp-block-post:nth-child(3n) {
    grid-column: 1/3;
  }
  .cards-news .wp-block-post-template .wp-block-post:nth-child(3n) .wp-block-post-featured-image img {
    aspect-ratio: 20/9;
  }
  .cards-news .wp-block-post-template .wp-block-post:nth-child(4n) {
    grid-column: auto;
  }
  .cards-news .wp-block-post-template .wp-block-post:nth-child(4n) > .wp-block-group {
    flex-direction: column;
  }
  .cards-news .wp-block-post-template .wp-block-post:nth-child(4n) > .wp-block-group > .wp-block-group {
    flex: 1;
    padding: 0 var(--wp--preset--spacing--50) var(--wp--preset--spacing--50) !important;
  }
  .cards-news .wp-block-post-template .wp-block-post:nth-child(4n) .wp-block-post-featured-image {
    flex: 1;
  }
  .cards-news .wp-block-post-template .wp-block-post:nth-child(4n) .wp-block-post-featured-image img {
    aspect-ratio: unset;
  }
}
@media (max-width: 720px) {
  .cards-news .wp-block-post-template {
    display: flex;
    flex-direction: column;
    gap: var(--wp--preset--spacing--60);
  }
  .cards-news .wp-block-post-template .wp-block-post-featured-image img {
    aspect-ratio: 16/9;
  }
}
.wp-block-post-template .wp-block-post:not(.card-prod) .wp-block-post-featured-image a {
  position: relative;
  overflow: hidden;
  display: block;
}
.wp-block-post-template .wp-block-post:not(.card-prod) .wp-block-post-featured-image a::after {
  content: "\f301";
  position: absolute;
  inset: 0;
  translate: -100% 100%;
  display: grid;
  place-items: center;
  font-family: var(--fa-style-family-sharp);
  font-size: 66px;
  font-weight: 100;
  line-height: 1;
  color: var(--wp--preset--color--white);
  background-color: hsla(30, 5%, 29%, 0.6);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  transition: all 0.6s ease;
}
.wp-block-post-template .wp-block-post:not(.card-prod) .wp-block-post-featured-image a:hover::after {
  translate: 0 0;
}

@media (max-width: 1580px) {
  .catalog-products .cards.wp-block-post-template {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)) !important;
  }
}
@media (max-width: 1100px) {
  .catalog-products .wp-block-columns {
    flex-direction: column;
  }
  .catalog-products .wp-block-columns .wp-block-column:nth-child(1) {
    order: 2;
  }
  .catalog-products .wp-block-columns .wp-block-column:nth-child(2) {
    order: 1;
  }
  .wp-block-categories-list {
    display: block;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
  }
  .wp-block-categories-list > li {
    flex: 1 1 13rem;
  }
}
.catalog-products .btn-more {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: space-between !important;
  align-items: center;
  color: var(--wp--preset--color--contrast);
  gap: 1rem;
  line-height: 1.2;
  text-decoration: none;
  padding: 10px 20px;
  border: 2.5px solid var(--wp--preset--color--primary) !important;
  border-radius: 88px;
  overflow: hidden;
  transition: all 0.4s ease;
  width: 100%;
  box-sizing: border-box;
  cursor: pointer;
}
.catalog-products .btn-more::before {
  content: "";
  position: absolute;
  inset: -10px;
  z-index: -1;
  border-radius: 88px;
  background-color: var(--wp--preset--color--primary);
  transition: all 0.4s ease;
}
.catalog-products .btn-more::after {
  content: "\f061";
  font-family: var(--fa-style-family-sharp);
  font-weight: 300;
  transition: all 0.4s ease;
}
.catalog-products .btn-more:hover {
  color: var(--wp--preset--color--primary);
}
.catalog-products .btn-more:hover::before {
  translate: 100% 0;
}
.catalog-products .btn-more:hover::after {
  font-weight: 900;
}