/* --------------------
   Section Blog
-------------------- */
.section-blog {
  position: relative;
  overflow-x: clip;
}

.section-blog__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.25rem;
  margin-bottom: var(--space-head);
}

.section-blog__head .section-title {
  max-width: 36rem;
}

.section-blog__head .section-description {
  color: var(--gray);
  font-size: 14px;
  line-height: 1.9;
  margin: 0;
}

.section-blog__btn .button {
  margin-top: 0;
}

.section-blog__btn--head {
  display: none;
}

.section-blog__btn--footer {
  display: flex;
  justify-content: center;
  margin-top: clamp(1.75rem, 3vw, 2.5rem);
}

.section-blog__sw {
  width: 100%;
}

.section-blog .swiper-section-blog {
  overflow: visible;
  width: 100%;
}

.swiper-section-blog .swiper-slide {
  width: min(82vw, 534px);
  height: auto;
  flex-shrink: 0;
  padding: 0 4px;
  box-sizing: border-box;
}

.swiper-section-blog .swiper-slide .post-item-image,
.swiper-section-blog .swiper-slide .post-item-image img {
  filter: grayscale(1);
  transition: 0.5s ease;
}

.swiper-section-blog .swiper-slide-active .post-item-image,
.swiper-section-blog .swiper-slide-active .post-item-image img {
  filter: grayscale(0);
}

/* .section-blog .sw-navigation {
  margin: 0 !important;
} */

/* .section-blog .sw-navigation.sw-between .swiper-nav-next,
.section-blog .sw-navigation.sw-between .swiper-nav-prev {
  --blog-slide-w: min(82vw, 534px);
  --blog-slide-pad: 8px;
  position: absolute;
  top: calc((var(--blog-slide-w) - var(--blog-slide-pad)) * 5 / 7 / 2);
  margin: 0;
  z-index: 3;
  transform: translateY(-50%);
} */

/* .section-blog .sw-navigation.sw-between .swiper-nav-next {
  right: max(-31px, calc(50% - (var(--blog-slide-w) / 2) - 20px));
}

.section-blog .sw-navigation.sw-between .swiper-nav-prev {
  left: max(-31px, calc(50% - (var(--blog-slide-w) / 2) - 20px));
} */

/* .section-blog .swiper-button-disabled {
  opacity: 0;
  pointer-events: none;
} */

@media (width >= 768px) {
  .swiper-section-blog .swiper-slide {
    width: min(70vw, 627px);
    padding: 0 10px;
  }

  .swiper-section-blog .swiper-slide .post-item-body,
  .swiper-section-blog .swiper-slide .post-item-image {
    transform-origin: center center;
    transition:
      transform 0.5s ease,
      filter 0.5s ease;
  }

  .swiper-section-blog .swiper-slide-active .post-item-body {
    transform: translateY(14px);
  }

  .swiper-section-blog .swiper-slide-active .post-item-image {
    transform: scaleY(1.1);
  }

  /* .section-blog .sw-navigation.sw-between .swiper-nav-next,
  .section-blog .sw-navigation.sw-between .swiper-nav-prev {
    --blog-slide-w: min(70vw, 627px);
    --blog-slide-pad: 20px;
    top: calc((var(--blog-slide-w) - var(--blog-slide-pad)) * 3 / 5 / 2);
  }

  .section-blog .sw-navigation.sw-between .swiper-nav-next {
    right: calc(50% - (var(--blog-slide-w) / 2) - 32px);
  }

  .section-blog .sw-navigation.sw-between .swiper-nav-prev {
    left: calc(50% - (var(--blog-slide-w) / 2) - 32px);
  } */
}

@media (width >= 992px) {
  .section-blog__head {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    text-align: right;
    gap: 2rem;
  }

  .section-blog__head .section-title {
    max-width: 24rem;
    text-align: right;
  }

  .section-blog__head .section-description {
    font-size: 15px;
  }

  .section-blog__btn--head {
    display: block;
    flex-shrink: 0;
  }

  .section-blog__btn--footer {
    display: none;
  }

  .section-blog--related .section-blog__head {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .section-blog--related .section-blog__head .section-title {
    max-width: 36rem;
    text-align: center;
  }
}
