.blog {
  padding: 80px 0 0;
  min-height: 100vh;
}

.blog .container {
  /*max-width: 1258px;*/
  max-width: 1284px;
}

.blog:before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  z-index: -1;
  background: url("/wp-content/uploads/2024/08/Gradient-Background.png") no-repeat top center;
  background-size: cover;
  height: 110vh;
}

.blog__heading {
  color: #282828;
  font-size: 63px;
  font-weight: 700;
  line-height: 75px;
  margin: 0;
}

.blog__desc {
  color: #333333;
  font-size: 18px;
  font-weight: 500;
  line-height: 26px;
  letter-spacing: 0.01em;
  max-width: 603px;
  margin-top: 24px;
}

.blog-filter {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 30px;
}

.blog-filter__wrapper {
  overflow: scroll hidden;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

.blog-filter__wrapper::-webkit-scrollbar {
  display: none;
}

.blog-filter__list {
  display: flex;
  gap: 16px;
}

.blog-filter__item {
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
  font-size: 18px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.01em;
  text-transform: lowercase;
  white-space: nowrap;
  background: #F7F7FA;
  border: 1px solid #66666680;
  border-radius: 10px;
  padding: 11px 18px;
}

.blog-filter__item:hover,
.blog-filter__item.active {
  color: #F7F7FA;
  font-weight: 500;
  background-color: #409a65;
  border-color: #409a65;
}

.blog-search__input {
  max-width: 320px;
  flex: 1;
  border-radius: 10px;
  line-height: 1;
  box-shadow: 0px 1px 3px 0px #00000029;
  background: #F7F7FA;
  border: none;
  font-weight: 500;
  font-size: 16px;
  width: 100%;
  display: flex;
  border: 1px solid transparent;
  overflow: hidden;
}

.blog-search__input input {
  background: none;
  border: none;
  padding: 12px 17px;
}
,
.blog-search__input input::placeholder {
  line-height: 1;
  font-size: 16px;
  color: #777777;
  font-weight: 500;
}

.blog-search__input input:focus {
  outline: none;
}

.blog-search__input:has(input:focus) {
  border: 1px solid #409A65;
}

.blog-search__input-submit, .blog-search__input-clear {
  padding: 9px;
  display: flex;
  align-items: center;
  transition: .3s;
}

.blog-search__input-submit:hover {
  background: #409A65;
}

.blog-search__input-submit:hover svg path {
  fill: white;
}

.blog-search__input-clear:hover {
  background: #7777773D;
}

.blog__post-list {
  margin-top: 118px;
}

.post-list__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.post-list__heading {
  color: #282828;
  font-size: 55px;
  font-weight: 700;
  line-height: 1;
}

.post-preview__list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 60px;
}

.post-preview {
  max-width: calc(33% - 12px);
  border-radius: 13px;
  border: 1px solid #FFFFFF;
  background-color: #FBFBFD;
  box-shadow: 9px 10px 25px -5px #0000000F, -3px -4px 10px -6px #00000008;
  padding: 13px;
}

.post-preview__image-link {
  overflow: hidden;
  display: block;
  font-size: 0;
  max-height: 201px;
  border-radius: 12px;
}

.post-preview__image-link img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.post-preview__image-link img {
  display: block;
  object-fit: cover;
  transition-property: transform;
  transition-timing-function: cubic-bezier(.4, 0, .2, 1);
  transition-duration: .3s;
}

.post-preview:hover .post-preview__image-link img {
  --scale: 1.1;
  transform: translate(0, 0) rotate(0) skew(0) skewY(0) scaleX(var(--scale)) scaleY(var(--scale));
}

.post-preview__title {
  overflow: hidden;
  display: -webkit-box;
  color: #333333;
  font-size: 20px;
  font-weight: 600;
  line-height: 25px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  min-height: 50px;
  margin-top: 20px;
}

.post-preview:hover .post-preview__title {
  text-decoration: underline;
}

.post-preview__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
}

.post-preview__footer-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.post-preview__category {
  color: #575758;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  text-transform: lowercase;
  background-color: #E8E8ED;
  border-radius: 24px;
  padding: 8px 10px;
}

.post-preview__footer-left .bullet {
  background-color: #666666;
  width: 4px;
  height: 4px;
  border-radius: 100%;
}

.post-preview__date {
  color: #666666;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
}

.post-preview__reading-time {
  display: flex;
  align-items: center;
  color: #a1a1a2;
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
}

.post-preview__reading-time:before {
  content: "";
  display: block;
  width: 16px;
  height: 16px;
  margin-right: 4px;
  opacity: .6;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none'%3E%3Cg fill='%23666' clip-path='url(%23a)' opacity='1'%3E%3Cpath d='M7.911 10.156a1.089 1.089 0 1 1 .24-2.164 1.089 1.089 0 0 1-.24 2.164Z'/%3E%3Cpath fill-rule='evenodd' d='m10.794 12.07-3.32-2.328 1.101-1.244 2.851 2.756a.516.516 0 0 1-.632.817Z' clip-rule='evenodd'/%3E%3Cpath fill-rule='evenodd' d='M6.06 1.01c0-.544.441-.984.985-.984h1.974c.544 0 .985.44.985.984v.07c0 .544-.441.984-.985.984h-.24v.803a6.542 6.542 0 1 1-1.494 0v-.803h-.24a.984.984 0 0 1-.985-.984v-.07Zm1.974 13.188a4.832 4.832 0 1 0 0-9.664 4.832 4.832 0 0 0 0 9.664Z' clip-rule='evenodd'/%3E%3C/g%3E%3Cdefs%3E%3CclipPath id='a'%3E%3Cpath fill='%23fff' d='M0 .026h16v16H0z'/%3E%3C/clipPath%3E%3C/defs%3E%3C/svg%3E");
}

.post-preview__reading-time:after {
  content: "";
  display: block;
  width: 24px;
  height: 24px;
  margin-left: 10px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none'%3E%3Cpath fill='%23646465' fill-rule='evenodd' d='M12.644 4.301a1 1 0 0 1 1.413.035l6.667 7a1 1 0 0 1 0 1.38l-6.667 7a1 1 0 0 1-1.448-1.38l5.058-5.31H4a1 1 0 1 1 0-2h13.667l-5.058-5.31a1 1 0 0 1 .035-1.415Z' clip-rule='evenodd'/%3E%3C/svg%3E");
}

.sticky-post__wrapper {
  margin-top: 105px;
}

.post-preview--sticky .post-preview__excerpt {
  display: none;
}

.blog .button--blog {
  font-weight: 600;
  line-height: 1;
  min-width: fit-content;
  white-space: nowrap;
  padding: 13px 16px;
}

.blog .button--blog:hover {
  color: #409a65;
  border-color: #409a65;
}

.blog .cta-section {
  border-image: none;
  background: linear-gradient(90deg, rgba(64, 154, 101, 0.3) -2.05%, rgba(135, 198, 206, 0.3) 24.81%, rgba(243, 147, 37, 0.3) 56.56%, rgba(251, 207, 84, 0.3) 90%);
  padding: 90px 0 110px;
  border-top: none;
  margin-top: 80px;
}

.blog .cta-section .case-study--container {
  gap: 0;
}

.blog .cta-section__title,
.blog .cta-section__description {
  text-align: center;
  text-wrap: balance;
  max-width: 530px;
}

.blog .cta-section__title {
  font-size: 48px;
  font-weight: 800;
  line-height: 53px;
}

.blog .cta-section__description {
  font-size: 18px;
  font-weight: 500;
  line-height: 27px;
  letter-spacing: 0.01em;
  margin-top: 24px;
}

.blog .cta-section__buttons {
  margin-top: 32px;
}

.blog--archive .pagination {
  margin-top: 35px;
}

.blog--archive .pagination .page-numbers {
  display: flex;
  justify-content: center;
  align-items: center;
  color: #333333;
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  width: 28px;
  height: 28px;
}

.blog--archive .pagination .page-numbers.current {
  color: #FBFBFD;
  border-radius: 100%;
  background: #34A853;
  outline: 2px solid #34A8534D;
}

.blog--archive .pagination .nav-links {
  gap: 4px;
}

.blog--archive .pagination .prev,
.blog--archive .pagination .next {
  font-size: 0;
}

.blog--archive .pagination .prev {
  margin-right: 10px;
}

.blog--archive .pagination .next {
  margin-left: 10px;
}

.blog__subscription {
  margin-top: 79px;
}


.blog-search {
  padding-top: 34px;
  padding-bottom: 80px;
}

.blog-search__back {
  font-weight: 400;
  font-size: 14px;
  color: #777777;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 48px;
}

.blog-search__title {
  font-weight: 500;
  font-size: 18px;
  line-height: 150%;
  margin-bottom: 4px;
  color: #333333;
}

.blog-search .blog-search__input {
  max-width: 100%;
}

.blog-search .blog-search__input input {
  padding: 20px 17px;
}

.blog-search__results {
  margin-top: 50px;
}

.blog-search__result {
  background: #FBFBFD;
  padding: 24px;
  display: flex;
  gap: 40px;
  border-radius: 24px;
}

.blog-search__result:not(:last-child) {
  margin-bottom: 24px;
}

.blog-search__result-image {
  flex-shrink: 0;
}

.blog-search__result-image img {
  height: 256px;
  object-fit: cover;
  border-radius: 12px;
  opacity: 80%;
}

.blog-search__result-date {
  margin: 24px 0;
  color: #666666;
  font-weight: 500;
  font-size: 14px;
  line-height: 120%;
}

.blog-search__result-title {
  font-weight: 600;
  font-size: 20px;
  line-height: 32px;
  color: #333333;
  margin-bottom: 24px;
  display: block;
  cursor: pointer;
}

.blog-search__result-excerpt {
  font-weight: 500;
  font-size: 16px;
  line-height: 26px;
  color: #777777;
}

.blog-search__result-inner {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 35px;
}

.blog-search__result-category {
  color: #575758;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  text-transform: lowercase;
  background-color: #E8E8ED;
  border-radius: 24px;
  padding: 8px 10px;
  width: fit-content;
}



@media (max-width: 597px) {
  .blog {
    padding-top: 39px;
  }

  .blog .container {
    padding: 0 20px;
  }

  .blog__heading {
    font-size: 39px;
    line-height: 47px;
  }

  .blog__desc {
    font-size: 16px;
    line-height: 22px;
    margin-top: 20px;
  }

  .blog-filter {
    display: block;
  }

  .blog-filter__wrapper {
    margin-top: 32px;
  }

  .blog-filter__item {
    font-size: 18px;
    padding-top: 12px;
    padding-bottom: 10px;
  }

  .blog-search__input {
    max-width: 100%;
    margin-top: 32px;
  }

  .sticky-post__wrapper {
    margin-top: 63px;
  }

  .post-preview {
    overflow: hidden;
    max-width: none;
    border-radius: 16px;
    border: none;
    padding: 0;
  }

  .post-preview__image-link {
    border-radius: 0;
  }

  .post-preview__inner {
    position: relative;
    padding: 46px 24px 24px;
    margin-top: 24px;
  }

  .post-preview__title {
    line-height: 24px;
    margin-top: 0;
  }

  .post-preview__category {
    position: absolute;
    inset: 0 auto auto 24px;
    font-size: 15px;
    padding-top: 9px;
    padding-bottom: 7px;
  }

  .post-preview__footer {
    margin-top: 16px;
  }

  .post-preview__footer-left .bullet {
    display: none;
  }

  .blog__post-list {
    margin-top: 32px;
  }

  .blog--archive .blog__post-list {
    margin-top: 64px;
  }

  .post-list__heading {
    font-size: 24px;
  }

  .post-preview__list {
    margin-top: 32px;
  }

  .post-list__header:has(.button) {
    margin-top: 63px;
  }

  .blog .cta-section {
    padding: 39px 3px 39px;
  }

  .blog .cta-section__title {
    font-size: 24px;
    font-weight: 800;
    line-height: 31px;
    max-width: 220px;
  }

  .blog .cta-section__description {
    font-size: 16px;
    line-height: 24px;
    max-width: 268px;
    text-wrap: wrap;
  }

  .blog--archive .pagination {
    margin-top: 20px;
  }

  .blog .cta-section {
    margin-top: 64px;
  }

  .blog__subscription {
    margin-top: 63px;
  }

  .post-preview:hover .post-preview__image-link img {
    --scale: none;
    transform: none;
  }
}

@media (min-width: 1024px) {
  .post-preview--sticky {
    display: flex;
    align-items: stretch;
    gap: 52px;
    max-width: 100%;
    /* height: 546px; */
    background-color: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
  }

  .post-preview--sticky .post-preview__image-link {
    max-height: none;
    flex-basis: 100%;
    border-radius: 31px;
  }

  .post-preview--sticky .post-preview__inner {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    max-width: 498px;
    border-radius: 18px;
    border: 1px solid #FFFFFF;
    background-color: #FBFBFD;
    box-shadow: 9px 10px 25px -5px #0000000F, -3px -4px 10px -6px #00000008;
    padding: 47px;
  }

  .post-preview--sticky .post-preview__title {
    font-size: 28px;
    font-weight: 700;
    line-height: 33px;
    -webkit-line-clamp: none;
    margin-top: 0;
  }

  .post-preview--sticky .post-preview__excerpt {
    display: block;
    color: #777777;
    font-size: 18px;
    font-weight: 500;
    line-height: 26px;
    margin-top: 24px;
  }

  .post-preview--sticky .post-preview__footer {
    margin-top: 0;
  }
}