.p1-blog-hero {
  min-height: 323px;
}

.p1-blog-search {
  display: flex;
  justify-content: center;
}

.p1-blog-search__field {
  align-items: center;
  background: #fff;
  border: 1px solid transparent;
  border-radius: 12px;
  box-shadow: 0 13px 30px rgba(98, 113, 159, 0.08);
  display: flex;
  height: 52px;
  margin: 24px 20px 0;
  max-width: 600px;
  padding: 0 20px;
  width: 100%;
}

.p1-blog-search__field:focus-within {
  border-color: #1e4dff;
}

.p1-blog-search__field input {
  background: transparent;
  border: 0;
  color: #141b34;
  flex: 1;
  height: 100%;
  min-width: 0;
  outline: 0;
}

.p1-blog-search__field input::placeholder {
  color: #bcbec6;
}

.p1-blog-search__field button {
  color: #bcbec6;
  flex: 0 0 auto;
  padding: 8px 4px 8px 12px;
}

.p1-blog-tags {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 40px;
}

.p1-blog-tags a {
  align-items: center;
  background: rgba(210, 219, 255, 0.5);
  border-radius: 8px;
  color: #004eff;
  display: inline-flex;
  font-size: 16px;
  font-weight: 400;
  height: 40px;
  padding: 0 16px;
  white-space: nowrap;
}

.p1-blog-tags a:hover {
  background: rgba(210, 219, 255, 0.3);
}

.p1-blog-tags a.is-active {
  background: #2e6eff;
  color: #fff;
  font-weight: 600;
}

.p1-blog-card {
  display: flex;
  flex-direction: column;
  transition: transform 500ms ease;
}

.p1-blog-card:hover {
  transform: scale(1.02);
}

.p1-blog-card figure {
  height: 220px;
  overflow: hidden;
  width: 100%;
}

.p1-blog-card__image { display: block; }
.p1-blog-card__image img { transition: transform 500ms ease; }
.p1-blog-card__image:hover img { transform: scale(1.035); }
.p1-blog-card__body { display: flex; flex-direction: column; gap: 18px; }
.p1-blog-card__meta,
.p1-blog-card__info { align-items: center; display: flex; justify-content: space-between; min-width: 0; }
.p1-blog-card__meta time { margin-left: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p1-blog-card__author { color: #667186; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p1-blog-card__action { display: block; width: 100%; }
.p1-blog-card__more { justify-content: center; position: static; width: 100%; }
.p1-blog-card__stats { align-items: center; color: #7d8798; display: flex; font-size: 13px; gap: 18px; }
.p1-blog-card__stats span { align-items: center; display: inline-flex; gap: 5px; }
.p1-blog-card__stats strong { color: #475369; font-weight: 600; }

.p1-blog-dot {
  background: #ece8ff;
  border-radius: 999px;
  height: 6px;
  width: 5px;
}

.blog-title-list {
  display: -webkit-box;
  line-height: 1.4;
  margin: 0 0 8px;
  max-height: 1.4em;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.p1-blog-summary {
  display: -webkit-box;
  line-height: 1.5;
  margin: 0;
  max-height: 3em;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.p1-blog-pagination {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  margin-top: 48px;
}

.p1-blog-pagination[hidden] { display: none; }
.p1-blog-pagination p { color: #667186; font-size: 14px; }
.p1-blog-pagination__buttons { align-items: center; display: flex; flex-wrap: wrap; gap: 8px; }
.p1-blog-pagination__buttons button {
  align-items: center;
  background: #fff;
  border: 1px solid rgba(20, 27, 52, 0.12);
  border-radius: 10px;
  color: #475369;
  cursor: pointer;
  display: inline-flex;
  font-size: 14px;
  height: 42px;
  justify-content: center;
  min-width: 42px;
  padding: 0 14px;
  transition: 180ms ease;
}
.p1-blog-pagination__buttons button:hover:not(:disabled) { border-color: #2e6eff; color: #2e6eff; }
.p1-blog-pagination__buttons button.is-active { background: #2e6eff; border-color: #2e6eff; color: #fff; }
.p1-blog-pagination__buttons button:disabled { cursor: not-allowed; opacity: 0.42; }
.p1-blog-pagination__buttons span { color: #8992a3; min-width: 24px; text-align: center; }
.dark .p1-blog-pagination p { color: rgba(255, 255, 255, 0.62); }
.dark .p1-blog-pagination__buttons button { background: #191d2b; border-color: rgba(255, 255, 255, 0.12); color: rgba(255, 255, 255, 0.78); }
.dark .p1-blog-pagination__buttons button.is-active { background: #2e6eff; border-color: #2e6eff; color: #fff; }

@media (max-width: 767px) {
  .p1-blog-hero {
    padding-top: 120px;
  }

  .p1-blog-tags {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 8px;
  }

  .p1-blog-card__stats { font-size: 12px; gap: 10px; }
  .p1-blog-card__author { font-size: 12px; }
  .p1-blog-pagination { justify-content: center; margin-top: 36px; }
  .p1-blog-pagination p { flex-basis: 100%; text-align: center; }
  .p1-blog-pagination__buttons { justify-content: center; }
  .p1-blog-pagination__buttons button { height: 38px; min-width: 38px; padding: 0 11px; }
}
