.vb-post-article-list,
.vb-post-article-list *,
.vb-post-article-list *::before,
.vb-post-article-list *::after {
  box-sizing: border-box;
}

.vb-post-article-list {
  padding: 96px 20px;
  background: #f8f7f5;
}

.vb-post-article-list__inner {
  max-width: 1240px;
  margin: 0 auto;
}

.vb-post-article-list__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 46px;
}

.vb-post-article-list__title {
  margin: 0;
  color: #4b3f3b;
  font-family: "Baloo 2", sans-serif;
  font-size: 40px;
  font-weight: 500;
  line-height: 0.95;
}

.vb-post-article-list__archive-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #4b3f3b;
  font-family: "Poppins", sans-serif;
  font-size: 16px;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.2s ease;
}

.vb-post-article-list__archive-link:hover {
  opacity: 0.72;
}

.vb-post-article-list__archive-link svg,
.vb-post-article-list__nav svg {
  width: 27px;
  height: 27px;
  fill: currentColor;
}

.vb-post-article-list__viewport {
  overflow: visible;
}

.vb-post-article-list__track {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.vb-post-article-list__card {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(0, 1.1fr);
  gap: 0;
  min-width: 0;
  border-radius: 32px;
  overflow: hidden;
  background: #fff;
}

.vb-post-article-list__image-wrap {
  position: relative;
  display: block;
  min-height: 258px;
  overflow: hidden;
  border-radius: 16px;
  background: #eeeae1;
}

.vb-post-article-list__image-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(
      0deg,
      rgba(142, 113, 98, 0.2) 0%,
      rgba(142, 113, 98, 0.2) 100%
    ),
    linear-gradient(
      90deg,
      rgba(220, 194, 183, 0.6) 0%,
      rgba(127, 98, 82, 0.6) 100%
    );
  pointer-events: none;
}

.vb-post-article-list__image,
.vb-post-article-list__image-placeholder {
  display: block;
  width: 100%;
  height: 100%;
}

.vb-post-article-list__image {
  object-fit: cover;
}

.vb-post-article-list__image-placeholder {
  background: linear-gradient(180deg, #dbcfc8 0%, #c9b9af 100%);
}

.vb-post-article-list__date-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 1;
  display: grid;
  justify-items: center;
  min-width: 82px;
  padding: 10px 10px 10px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.65);
}

.vb-post-article-list__date-day {
  color: #4b3f3b;
  font-family: "Baloo 2", sans-serif;
  font-size: 32px;
  font-weight: 500;
  line-height: 1;
}

.vb-post-article-list__date-month {
  margin-top: 8px;
  color: #4b3f3b;
  font-family: "Baloo 2", sans-serif;
  font-size: 24px;
  line-height: 1;
}

.vb-post-article-list__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 28px 28px 24px 20px;
}

.vb-post-article-list__category {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin-bottom: 16px;
  padding: 4px 12px;
  border-radius: 999px;
  background: #f6f0ee;
  color: #5c3022;
  font-family: "Poppins", sans-serif;
  font-size: 12px;
  line-height: 1;
  text-decoration: none;
}

.vb-post-article-list__card-title {
  margin: 0 0 16px;
  color: #4b3f3b;
  font-family: "Baloo 2", sans-serif;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.05;
}

.vb-post-article-list__card-title a {
  color: inherit;
  text-decoration: none;
}

.vb-post-article-list__excerpt {
  margin: 0;
  color: #84726b;
  font-family: "Poppins", sans-serif;
  font-size: 16px;
  line-height: 1.45;
  margin-bottom: 24px;
}

.vb-post-article-list__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  margin-top: auto;
  padding: 10px 18px;
  border: 1px solid #4b3f3b;
  border-radius: 999px;
  color: #4b3f3b;
  font-family: "Baloo 2", sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}

.vb-post-article-list__button:hover {
  background: #4b3f3b;
  color: #fff;
}

.vb-post-article-list__controls {
  display: none;
  justify-content: center;
  gap: 14px;
  margin-top: 24px;
}

.vb-post-article-list__nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #ead6cc;
  color: #fff;
  cursor: pointer;
}

.vb-post-article-list__nav:disabled {
  background: #f1e5e0;
  cursor: default;
}

@media (max-width: 1180px) {
  .vb-post-article-list__track {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .vb-post-article-list {
    padding: 32px 12px 40px;
  }

  .vb-post-article-list__header {
    margin-bottom: 24px;
    align-items: flex-end;
  }

  .vb-post-article-list__title {
    max-width: 130px;
    font-size: 28px;
  }

  .vb-post-article-list__archive-link {
    font-size: 16px;
  }

  .vb-post-article-list__viewport {
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-snap-type: x mandatory;
    padding-inline: 2px;
  }

  .vb-post-article-list__viewport::-webkit-scrollbar {
    display: none;
  }

  .vb-post-article-list__track {
    display: flex;
    gap: 16px;
    align-items: stretch;
  }

  .vb-post-article-list__card {
    flex: 0 0 100%;
    min-width: 100%;
    grid-template-columns: minmax(132px, 38%) minmax(0, 1fr);
    height: auto;
    scroll-snap-align: start;
    align-items: stretch;
  }

  .vb-post-article-list__image-wrap {
    min-height: 100%;
  }

  .vb-post-article-list__date-badge {
    top: 14px;
    left: 14px;
    min-width: 86px;
    padding: 14px 10px 14px;
  }

  .vb-post-article-list__date-day {
    font-size: 18px;
  }

  .vb-post-article-list__date-month {
    font-size: 15px;
  }

  .vb-post-article-list__content {
    padding: 18px 16px 16px 14px;
  }

  .vb-post-article-list__category {
    margin-bottom: 14px;
    font-size: 12px;
  }

  .vb-post-article-list__card-title {
    margin-bottom: 12px;
    font-size: 18px;
    line-height: 1.02;
  }

  .vb-post-article-list__excerpt {
    font-size: 13px;
    line-height: 1.35;
  }

  .vb-post-article-list__button {
    min-height: 42px;
    margin-top: 16px;
    padding-inline: 18px;
  }

  .vb-post-article-list__excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .vb-post-article-list__controls {
    display: inline-flex;
    width: 100%;
    margin-top: 12px;
  }

  .vb-post-article-list__controls[hidden] {
    display: none;
  }
}
