.taleet-template-list {
  color: #34274f;
}

body:has(.taleet-template-list) .c-pageTitle {
  display: none;
}

.taleet-template-list__hero {
  margin: 0 0 28px;
  padding: 34px 18px 24px;
  text-align: center;
}

.taleet-template-list__hero h2 {
  margin: 0;
  color: #34274f;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.25;
}

.taleet-template-list__eyebrow {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: center;
  margin: 10px 0 18px;
  color: #a874d6;
  font-size: 15px;
  font-style: italic;
  line-height: 1.2;
}

.taleet-template-list__eyebrow::before,
.taleet-template-list__eyebrow::after {
  content: "";
  width: min(90px, 18vw);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(168, 116, 214, 0.58));
}

.taleet-template-list__eyebrow::after {
  background: linear-gradient(90deg, rgba(168, 116, 214, 0.58), transparent);
}

.taleet-template-list__hero p:not(.taleet-template-list__eyebrow) {
  margin: 0;
  color: #5f5477;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.8;
}

.taleet-template-list__filters {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  margin: -4px -6px 34px;
}

.taleet-template-list__categories {
  display: flex;
  gap: 6px;
  align-items: center;
  flex: 0 1 auto;
  max-width: min(760px, calc(100% - 260px));
  padding: 9px;
  overflow-x: auto;
  border-radius: 999px;
  border: 1px solid rgba(126, 84, 177, 0.08);
  background: rgba(255, 255, 255, 0.9);
  box-shadow:
    0 0px 18px rgba(74, 42, 112, 0.12),
    0 0px 14px rgba(158, 111, 205, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.taleet-template-list__categories::-webkit-scrollbar {
  display: none;
}

.taleet-template-list__sort {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: nowrap;
  gap: 6px;
  align-items: center;
  justify-content: center;
  padding: 9px;
  border-radius: 999px;

}

.taleet-template-list__chip,
.taleet-template-list__sort a {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border: 1px solid rgba(113, 70, 174, 0.12);
  border-radius: 999px;
  color: #5b4777;
  background: rgba(255, 255, 255, 0.94);
  box-shadow:
    0 0px 14px rgba(92, 53, 110, 0.06),
    inset 0 0 0 1px rgba(255, 255, 255, 0.48);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
}

.taleet-template-list__chip {
  padding: 0 14px;
}

.taleet-template-list__sort a {
  min-width: 84px;
  padding: 0 18px;
}

.taleet-template-list__chip:hover,
.taleet-template-list__sort a:hover,
.taleet-template-list__chip.is-active,
.taleet-template-list__sort a.is-active {
  color: #fff;
  background: linear-gradient(135deg, #6f43b4, #9f72d6);
  box-shadow: 0 14px 30px rgba(113, 70, 174, 0.24);
  text-decoration: none;
}

.taleet-template-list__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px 24px;
}

.taleet-template-list-card {
  display: grid;
  gap: 10px;
  min-width: 0;
  color: inherit;
  transition: transform 0.18s ease;
}

.taleet-template-list-card:hover {
  text-decoration: none;
  transform: translateY(-3px);
}

.taleet-template-list-card__thumb {
  display: block;
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border-radius: 12px;
  background: linear-gradient(135deg, #fff5fb, #f7f0ff);
  box-shadow: 0 12px 28px rgba(62, 43, 85, 0.1);
}

.taleet-template-list-card__image,
.taleet-template-list-card__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.taleet-template-list-card__body {
  display: grid;
  gap: 8px;
  padding: 0;
}

.taleet-template-list-card__content {
  display: grid;
  gap: 6px;
  color: inherit;
  text-decoration: none;
}

.taleet-template-list-card__content:hover {
  text-decoration: none;
}

.taleet-template-list-card__title {
  color: #34274f;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.35;
}

.taleet-template-list-card__excerpt {
  color: #6d6287;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.55;
}

.taleet-template-list-card__meta {
  display: flex;
  gap: 8px;
  align-items: end;
  justify-content: space-between;
}

.taleet-template-list-card__categories {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.taleet-template-list-card__categories a,
.taleet-template-list-card__categories span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 7px;
  color: #735e96;
  background: #f4eeff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.3;
  text-decoration: none;
}

.taleet-template-list-card__categories a:hover {
  color: #fff;
  background: linear-gradient(135deg, #ef5f91, #f489b0);
  text-decoration: none;
}

.taleet-template-list-card__count {
  flex: 0 0 auto;
  color: #ef6b9d;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.5;
}

.taleet-template-list__empty {
  margin: 0;
  padding: 28px;
  border-radius: 14px;
  color: #776b8f;
  background: rgba(255, 255, 255, 0.82);
  font-weight: 800;
  text-align: center;
}

@media (max-width: 640px) {
  .taleet-template-list__hero {
    padding: 30px 10px 22px;
  }

  .taleet-template-list__hero h2 {
    font-size: 30px;
  }

  .taleet-template-list__hero p:not(.taleet-template-list__eyebrow) {
    font-size: 13px;
  }

  .taleet-template-list__filters {
    display: grid;
    justify-content: stretch;
  }

  .taleet-template-list__categories {
    max-width: 100%;
  }

  .taleet-template-list__sort {
    justify-content: flex-start;
  }

  .taleet-template-list__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 14px;
  }

  .taleet-template-list-card__body {
    gap: 6px;
  }

  .taleet-template-list-card__title {
    font-size: 15px;
    line-height: 1.3;
  }

  .taleet-template-list-card__excerpt {
    font-size: 11px;
    line-height: 1.45;
  }

  .taleet-template-list-card__meta {
    gap: 6px;
  }

  .taleet-template-list-card__categories {
    gap: 4px;
  }

  .taleet-template-list-card__categories a,
  .taleet-template-list-card__categories span {
    min-height: 21px;
    padding: 0 6px;
    border-radius: 6px;
    font-size: 10px;
  }

  .taleet-template-list-card__count {
    font-size: 11px;
  }
}
