.section-posts {
  margin: 7rem 0;
}
.section-posts .container {
  max-width: 900px;
}
.section-posts .container .content h1, .section-posts .container .content h2 {
  max-width: 800px;
  margin: 0 auto 25px;
  text-align: center;
}
.section-posts .container .content .text {
  max-width: 800px;
  margin: 0 auto 40px;
  text-align: center;
}
.section-posts .container .posts {
  margin-top: 50px;
}
.section-posts .container .posts .no-results {
  text-align: center;
  margin: 0 auto;
}
.section-posts .container .posts .post {
  transition: all 0.4s;
  background-color: var(--primary-bright);
}
.section-posts .container .posts .post a h3 {
  transition: all 0.1s;
  color: var(--black);
}
.section-posts .container .posts .post a h3:hover {
  color: var(--primary);
}
.section-posts .container .posts .post a.button.plain-text {
  color: var(--primary);
}
.section-posts .container .posts .post a.button.plain-text:hover {
  color: var(--black);
}
.section-posts .container .posts .post:has(a:hover) {
  box-shadow: 0 0 50px rgba(var(--primary-rgb), 0.4);
}
.section-posts .container .posts .post:has(a.button:hover) {
  box-shadow: 0 30px 50px rgba(var(--primary-rgb), 0.4);
}
.section-posts .container .posts .pagination {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  grid-gap: 10px;
  margin-top: 15px;
}
.section-posts .container .posts .pagination a {
  padding: 2px;
  font-weight: 400;
}
.section-posts .container .posts .pagination a.active {
  font-weight: 600;
}
.section-posts .container .posts .pagination a svg {
  width: 8px;
  opacity: 0.75;
}
.section-posts .container .posts .pagination a:hover svg {
  opacity: 1;
}

/*

Type: Blog

*/
.section-posts .container .posts[type=blog] {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  grid-gap: 20px;
}
.section-posts .container .posts[type=blog] .post {
  width: calc(33% - 14px);
  border-radius: 20px;
  color: var(--black);
}
.section-posts .container .posts[type=blog] .post .image img {
  display: block;
  border-radius: 15px;
  width: 100%;
  aspect-ratio: 1.5;
  -o-object-fit: cover;
     object-fit: cover;
}
.section-posts .container .posts[type=blog] .post .content {
  padding: 25px;
}
.section-posts .container .posts[type=blog] .post .content .date {
  background-color: var(--primary);
  padding: 2px;
  display: flex;
  align-items: center;
  border-radius: 20px;
  width: -moz-max-content;
  width: max-content;
}
.section-posts .container .posts[type=blog] .post .content .date span.icon {
  background-color: var(--white);
  width: 22px;
  height: 22px;
  padding: 5px;
  margin-right: 6px;
  border-radius: 100%;
}
.section-posts .container .posts[type=blog] .post .content .date span.icon img {
  width: 100%;
  display: block;
}
.section-posts .container .posts[type=blog] .post .content .date span.date-text {
  color: var(--white);
  font-size: 0.7em;
  padding-right: 10px;
}
.section-posts .container .posts[type=blog] .post .content a h3 {
  font-size: 1.1em;
  font-weight: 600;
  margin: 10px 0;
  color: var(--black);
  transition: all 0.1s;
}
.section-posts .container .posts[type=blog] .post .content a h3:hover {
  color: var(--primary);
}
.section-posts .container .posts[type=blog] .post .content .text {
  text-align: left;
  font-size: 0.9em;
  margin-bottom: 20px;
}
.section-posts .container .posts[type=blog] .post .content a.button {
  margin-left: 0;
  color: var(--primary);
  width: -moz-max-content;
  width: max-content;
  padding: 0;
  border-radius: unset;
}
.section-posts .container .posts[type=blog] .post .content a.button:hover {
  color: var(--black);
}

@media (max-width: 900px) {
  .section-posts .container .posts[type=blog] .post {
    width: calc(50% - 10px);
  }
}
@media (max-width: 600px) {
  .section-posts .container .posts[type=blog] .post {
    width: 100%;
  }
  .section-posts .container .posts[type=blog] .post .image img {
    max-height: 250px;
  }
}
/* Scroll animations */
.section-posts .container .posts[type=blog] .post {
  margin: 0 50px 0 -50px;
}
.section-posts.scrolled-to .container .posts[type=blog] .post {
  animation: blogPosts 1s ease-out forwards;
}

@keyframes blogPosts {
  to {
    margin: 0;
    opacity: 1;
  }
}
/*

Type: Case Study

*/
.section-posts .container .posts[type=case_study] {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  grid-gap: 25px;
}
.section-posts .container .posts[type=case_study] .post {
  width: 100%;
  border-radius: 20px;
  position: relative;
  padding: 10px;
  color: var(--black);
}
.section-posts .container .posts[type=case_study] .post .image {
  width: 400px;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}
.section-posts .container .posts[type=case_study] .post .image img {
  display: block;
}
.section-posts .container .posts[type=case_study] .post .image img:nth-child(1) {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  border-radius: 20px;
}
.section-posts .container .posts[type=case_study] .post .image img:nth-child(2) {
  position: absolute;
  bottom: 10px;
  left: 10px;
  width: calc(100% - 20px);
  height: auto;
}
.section-posts .container .posts[type=case_study] .post .content {
  width: calc(100% - 400px);
  margin-left: auto;
  padding: 40px;
  min-height: 450px;
}
.section-posts .container .posts[type=case_study] .post .content h3 {
  margin: 0 0 25px;
  font-size: 2.3em;
}
.section-posts .container .posts[type=case_study] .post .content .actions p {
  display: flex;
  align-items: flex-start;
}
.section-posts .container .posts[type=case_study] .post .content .actions p img {
  width: 20px;
  margin-right: 8px;
}
.section-posts .container .posts[type=case_study] .post .content .actions p span.text {
  flex: 1;
  text-align: left;
  margin: 0;
}
.section-posts .container .posts[type=case_study] .post .content .stats {
  display: flex;
  flex-wrap: wrap;
  margin-top: 30px;
}
.section-posts .container .posts[type=case_study] .post .content .stats p {
  width: 50%;
  padding: 0 15px;
  font-size: 0.9em;
}
.section-posts .container .posts[type=case_study] .post .content .stats p span {
  display: block;
  font-size: 2em;
  font-weight: 600;
}
.section-posts .container .posts[type=case_study] .post .content .stats p:nth-child(odd) {
  border-right: 2px solid rgba(0, 0, 0, 0.25);
}
.section-posts .container .posts[type=case_study] .post .content .stats p:not(:first-child):not(:nth-child(2)):not(:nth-last-child(2)):not(:last-child) {
  padding-bottom: 15px;
  border-bottom: 2px solid rgba(0, 0, 0, 0.25);
}
.section-posts .container .posts[type=case_study] .post .content .row {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  grid-gap: 50px;
  margin-top: 40px;
}
.section-posts .container .posts[type=case_study] .post .content .row .button {
  font-size: 0.8em;
}
.section-posts .container .posts[type=case_study] .post .content .row img.logo {
  max-width: 125px;
  display: block;
}

@media (max-width: 950px) {
  .section-posts .container .posts[type=case_study] .post .image {
    width: 300px;
  }
  .section-posts .container .posts[type=case_study] .post .content {
    width: calc(100% - 300px);
  }
}
@media (max-width: 750px) {
  .section-posts .container .posts[type=case_study] .post .image {
    width: 200px;
  }
  .section-posts .container .posts[type=case_study] .post .content {
    width: calc(100% - 200px);
    padding: 40px 20px;
  }
}
@media (max-width: 600px) {
  .section-posts .container .posts[type=case_study] .post .image {
    display: none;
  }
  .section-posts .container .posts[type=case_study] .post .content {
    width: 100%;
    min-height: unset;
  }
}
/* Scroll animations */
.section-posts .container .posts[type=case_study] .post {
  margin: 0 50px 0 -50px;
}
.section-posts.scrolled-to .container .posts[type=case_study] .post {
  animation: blogPosts 1s ease-out forwards;
}

@keyframes blogPosts {
  to {
    margin: 0;
    opacity: 1;
  }
}
/*

Type: Guide

*/
.section-posts:has(.posts[type=guide]) .container {
  max-width: 1100px;
}
.section-posts:has(.posts[type=guide]) .container .posts {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  grid-gap: 20px;
}
.section-posts:has(.posts[type=guide]) .container .posts .post {
  width: calc(25% - 15px);
  border-radius: 20px;
  border: 1px solid rgba(0, 0, 0, 0.25);
  color: var(--black);
  padding: 25px;
}
.section-posts:has(.posts[type=guide]) .container .posts .post p.label {
  background-color: rgba(var(--primary-rgb), 0.2);
  padding: 2px 8px;
  border-radius: 5px;
  width: -moz-max-content;
  width: max-content;
  margin: 0 0 25px auto;
  font-size: 0.8em;
  font-weight: 600;
  color: var(--primary);
}
.section-posts:has(.posts[type=guide]) .container .posts .post .icon {
  width: 50px;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 5px;
  margin: 0 0 25px;
  background-color: var(--primary);
}
.section-posts:has(.posts[type=guide]) .container .posts .post .icon img {
  width: 25px;
}
.section-posts:has(.posts[type=guide]) .container .posts .post a h3 {
  font-size: 1.1em;
  font-weight: 600;
  margin: 10px 0;
}
.section-posts:has(.posts[type=guide]) .container .posts .post .text {
  text-align: left;
  font-size: 0.9em;
  margin-bottom: 20px;
}
.section-posts:has(.posts[type=guide]) .container .posts .post a.button {
  margin-left: 0;
  margin-top: 40px;
  width: -moz-max-content;
  width: max-content;
  padding: 0;
  border-radius: unset;
}

@media (max-width: 1100px) {
  .section-posts:has(.posts[type=guide]) .container .posts .post {
    width: calc(33% - 14px);
  }
}
@media (max-width: 900px) {
  .section-posts:has(.posts[type=guide]) .container .posts {
    justify-content: center;
  }
  .section-posts:has(.posts[type=guide]) .container .posts .post {
    width: calc(50% - 10px);
  }
}
@media (max-width: 700px) {
  .section-posts:has(.posts[type=guide]) .container .posts .post {
    width: 100%;
    max-width: 500px;
  }
}
/* Scroll animations */
.section-posts .container .posts[type=guide] .post {
  margin: -50px 0 50px 0;
}
.section-posts.scrolled-to .container .posts[type=guide] .post {
  animation: guidePosts 1s ease-out forwards;
}

@keyframes guidePosts {
  to {
    margin: 0;
    opacity: 1;
  }
}
/*

Type: News

*/
.section-posts .container .posts[type=news] {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  grid-gap: 30px;
}
.section-posts .container .posts[type=news] .post {
  width: calc(50% - 15px);
  background-color: var(--white);
  border-radius: 20px;
  color: var(--black);
  overflow: hidden;
  position: relative;
}
.section-posts .container .posts[type=news] .post .image {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 175px;
}
.section-posts .container .posts[type=news] .post .image img {
  display: block;
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}
.section-posts .container .posts[type=news] .post .content {
  padding: 40px 25px;
  width: calc(100% - 175px);
  margin-left: auto;
}
.section-posts .container .posts[type=news] .post .content .date {
  background-color: var(--primary);
  padding: 2px;
  display: flex;
  align-items: center;
  border-radius: 20px;
  width: -moz-max-content;
  width: max-content;
}
.section-posts .container .posts[type=news] .post .content .date span.icon {
  background-color: var(--white);
  width: 22px;
  height: 22px;
  padding: 5px;
  margin-right: 6px;
  border-radius: 100%;
}
.section-posts .container .posts[type=news] .post .content .date span.icon img {
  width: 100%;
  display: block;
}
.section-posts .container .posts[type=news] .post .content .date span.date-text {
  color: var(--white);
  font-size: 0.7em;
  padding-right: 10px;
}
.section-posts .container .posts[type=news] .post .content a h3 {
  font-size: 1.1em;
  font-weight: 600;
  margin: 10px 0;
  color: var(--black);
  transition: all 0.1s;
}
.section-posts .container .posts[type=news] .post .content a h3:hover {
  color: var(--primary);
}
.section-posts .container .posts[type=news] .post .content .text {
  text-align: left;
  font-size: 0.9em;
  margin-bottom: 20px;
}
.section-posts .container .posts[type=news] .post .content a.button {
  margin-left: 0;
  margin-top: 40px;
  color: var(--primary);
  width: -moz-max-content;
  width: max-content;
  padding: 0;
  border-radius: unset;
}
.section-posts .container .posts[type=news] .post .content a.button:hover {
  color: var(--black);
}

@media (max-width: 900px) {
  .section-posts .container .posts[type=news] .post .image {
    width: 125px;
  }
  .section-posts .container .posts[type=news] .post .content {
    width: calc(100% - 125px);
  }
}
@media (max-width: 800px) {
  .section-posts .container .posts[type=news] {
    justify-content: center;
  }
  .section-posts .container .posts[type=news] .post {
    width: 100%;
    max-width: 500px;
  }
  .section-posts .container .posts[type=news] .post .image {
    width: 175px;
  }
  .section-posts .container .posts[type=news] .post .content {
    width: calc(100% - 175px);
  }
}
@media (max-width: 500px) {
  .section-posts .container .posts[type=news] .post .image {
    width: 125px;
  }
  .section-posts .container .posts[type=news] .post .content {
    width: calc(100% - 125px);
  }
}
/* Scroll animations */
.section-posts .container .posts[type=news] .post {
  margin: -50px 0 50px 0;
}
.section-posts.scrolled-to .container .posts[type=news] .post {
  animation: newsPosts 1s ease-out forwards;
}

@keyframes newsPosts {
  to {
    margin: 0;
    opacity: 1;
  }
}
/*

Type: Video

*/
.section-posts .container .posts[type=video] .block {
  display: block;
  border-radius: 15px;
  position: relative;
}
.section-posts .container .posts[type=video] .block.first-block {
  aspect-ratio: 2.2;
}
.section-posts .container .posts[type=video] .block:before {
  content: "";
  position: absolute;
  top: -5px;
  left: -5px;
  width: calc(100% + 8px);
  height: calc(100% + 8px);
  border-radius: 18px;
  border: 1px solid var(--black);
  transition: all 0.3s;
  visibility: hidden;
  opacity: 0;
}
.section-posts .container .posts[type=video] .block img {
  border-radius: 15px;
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  display: block;
}
.section-posts .container .posts[type=video] .block .icon {
  position: absolute;
  top: 15px;
  right: 15px;
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.5);
  background-color: var(--white);
  width: 20px;
  height: 20px;
  border-radius: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.5s;
}
.section-posts .container .posts[type=video] .block .icon svg {
  width: 10px;
  transition: all 0.5s;
}
.section-posts .container .posts[type=video] .block .icon.play svg {
  margin-left: 3px;
}
.section-posts .container .posts[type=video] .block:hover:before {
  visibility: visible;
  opacity: 1;
}
.section-posts .container .posts[type=video] .block:hover .icon {
  box-shadow: 0 0 0 5px rgb(255, 255, 255);
}
.section-posts .container .posts[type=video] .block:hover .icon svg {
  transform: scale(1.1);
}
.section-posts .container .posts[type=video] .block.first-block .icon {
  top: 25px;
  right: 25px;
  box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.5);
  width: 40px;
  height: 40px;
}
.section-posts .container .posts[type=video] .block.first-block .icon svg {
  width: 20px;
}
.section-posts .container .posts[type=video] .block.first-block:hover .icon {
  box-shadow: 0 0 0 10px rgb(255, 255, 255);
}
.section-posts .container .posts[type=video] .carousel {
  margin-top: 20px;
  position: relative;
  width: 100%;
}
.section-posts .container .posts[type=video] .carousel .carousel-inner {
  display: flex;
  grid-gap: 20px;
  justify-content: flex-start;
  transition: all 0.5s;
}
.section-posts .container .posts[type=video] .carousel .carousel-inner .block {
  aspect-ratio: 1.25;
}
.section-posts .container .posts[type=video] .carousel .arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: #f2f2f2;
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 100%;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: all 0.3s;
}
.section-posts .container .posts[type=video] .carousel .arrow svg {
  width: 10px;
}
.section-posts .container .posts[type=video] .carousel .arrow.arrow-left {
  left: -20px;
}
.section-posts .container .posts[type=video] .carousel .arrow.arrow-right {
  right: -20px;
}
.section-posts .container .posts[type=video] .carousel .arrow:hover {
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}
.section-posts .container .posts[type=video] .carousel:not(:has(.arrow)) .carousel-inner {
  margin: 0 auto;
}

@media (max-width: 1000px) {
  .section-posts .container .posts[type=video] .block.first-block {
    aspect-ratio: 1.75;
  }
}
@media (max-width: 600px) {
  .section-posts .container .posts[type=video] .block.first-block {
    aspect-ratio: 1.4;
  }
}
/* Scroll animations */
.section-posts .container .posts[type=video] .carousel .block {
  margin: 0 50px 0 -50px;
}
.section-posts.scrolled-to .container .posts[type=video] .block {
  animation: videoPosts 1s ease-out forwards;
}

@keyframes videoPosts {
  to {
    margin: 0;
    opacity: 1;
  }
}
/*

Options - Background Primary

*/
.section-posts[options~=background-primary] {
  background-color: var(--primary);
  margin: 0;
  padding: 7rem 0;
  color: var(--white);
}
.section-posts[options~=background-primary] .subheading {
  color: var(--white);
  background-color: rgba(var(--black-rgb), 0.2);
}
.section-posts[options~=background-primary] .container .posts .post {
  background-color: var(--white);
}
.section-posts[options~=background-primary] .container .posts .post:has(a:hover) {
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.2);
}
.section-posts[options~=background-primary] .container .posts .post:has(a.button:hover) {
  box-shadow: 0 30px 50px rgba(0, 0, 0, 0.2);
}

/*

Options - Background Gradient

*/
.section-posts[options~=background-gradient] {
  background-image: linear-gradient(130deg, var(--primary-bright), var(--secondary-bright));
  margin: 0;
  padding: 7rem 0;
}
.section-posts[options~=background-gradient] .container .posts .post {
  background-color: var(--white);
}

/*

Options - Smaller Header

*/
.section-posts[options~=smaller-header] .container .content :is(h1, h2) {
  font-size: 3em;
}

/*

Scroll Animations (applied to all)

*/
.section-posts {
  opacity: 0;
  transition: all 1s;
}
.section-posts :is(.block, .post) {
  opacity: 0;
}
.section-posts.scrolled-to {
  opacity: 1;
}
.section-posts.scrolled-to :is(.block, .post):nth-child(1) {
  animation-delay: 0s !important;
}
.section-posts.scrolled-to :is(.block, .post):nth-child(2) {
  animation-delay: 0.2s !important;
}
.section-posts.scrolled-to :is(.block, .post):nth-child(3) {
  animation-delay: 0.4s !important;
}
.section-posts.scrolled-to :is(.block, .post):nth-child(4) {
  animation-delay: 0.6s !important;
}
.section-posts.scrolled-to :is(.block, .post):nth-child(5) {
  animation-delay: 0.8s !important;
}
.section-posts.scrolled-to :is(.block, .post):nth-child(6) {
  animation-delay: 1s !important;
}
.section-posts.scrolled-to :is(.block, .post):nth-child(7) {
  animation-delay: 1.2s !important;
}
.section-posts.scrolled-to :is(.block, .post):nth-child(8) {
  animation-delay: 1.4s !important;
}
.section-posts.scrolled-to :is(.block, .post):nth-child(9) {
  animation-delay: 1.6s !important;
}
.section-posts.scrolled-to :is(.block, .post):nth-child(10) {
  animation-delay: 1.8s !important;
}
.section-posts.scrolled-to :is(.block, .post):nth-child(11) {
  animation-delay: 2s !important;
}
.section-posts.scrolled-to :is(.block, .post):nth-child(12) {
  animation-delay: 2.2s !important;
}