.home-blog-section {
  background-color: var(--color-background-alt);
  font-family: var(--font-outfit);
}

.home-blog-header {
  text-align: left;
  margin-bottom: 32px;
}

.home-blog-header p {
  color: var(--color-content-mid);
  line-height: 24px;
  margin: 0;
}

.home-blog-slider {
  margin: 0 0 30px;

  @media (min-width: 1024px) {
    margin: 0 0 40px;
  }
}

.home-blog-card {
  background: transparent;
  display: flex;
  flex-direction: column;
  text-decoration: none !important;

  &:hover {
    span:not(.card-badge) {
      text-decoration: underline;
      color: var(--color-primary-mid);
    }
  }
}

.home-blog-card .card-image {
  width: 100%;
  height: 165px;
  border-radius: 24px;
  overflow: hidden;
  margin-bottom: 24px;

  @media (min-width: 1024px) {
    height: 185px;
  }
}

.home-blog-card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.home-blog-card:hover .card-image img {
  transform: scale(1.025);
}

.home-blog-card .card-badge {
  display: inline-block;
  background-color: var(--white-color);
  color: var(--primary-color);
  padding: 2px 8px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  width: fit-content;
  margin-bottom: 16px;
}

.home-blog-card span {
  color: var(--primary-color);
  font-size: 22px;
  font-weight: 600;
  line-height: 30px;
  margin: 0;

  transition: all 0.3s ease;
}

.home-blog-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-bottom: 32px;
  position: static !important;
}

.home-blog-pagination .swiper-pagination-bullet {
  width: 14px;
  height: 14px;
  background: transparent;
  border: 1px solid var(--color-primary-mid);
  opacity: 1;
  margin: 0 !important;
  transition: all 0.3s ease;
}

.home-blog-pagination .swiper-pagination-bullet-active {
  width: 40px;
  border-radius: 10px;
  background: var(--color-primary-mid);
}

.home-blog-footer {
  display: flex;

  >a {
    width: 100%;
    text-align: center;

    @media (min-width: 1024px) {
      width: fit-content;
    }
  }
}

@media (max-width: 768px) {
  .home-blog-header p {
    font-size: 16px;
  }
}

@media (min-width: 1024px) {
  .swiper-home-blog {
    overflow: visible;
  }

  .swiper-home-blog .swiper-wrapper {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, auto);
    column-gap: 40px;
    row-gap: 48px;
    transform: none !important;
    width: 100% !important;
  }

  .swiper-home-blog .swiper-slide {
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
  }

  .home-blog-pagination {
    display: none !important;
  }

  .home-blog-header {
    margin-bottom: 40px;
  }
}