.collections-page main {
  background:
    radial-gradient(circle at 76% 12%, rgba(8, 174, 100, .08), transparent 260px),
    radial-gradient(circle at 13% 44%, rgba(22, 136, 255, .055), transparent 250px),
    linear-gradient(180deg, #fff 0%, #fbfdff 48%, #fff 100%);
}

.collections-hero {
  padding: 18px 0 22px;
  background: #fff;
  border-bottom: 1px solid #e4ebf3;
}

.breadcrumbs,
.collections-hero-inner,
.collection-search,
.collection-toolbar,
.collection-tabs,
.collection-tab,
.sort-select,
.collection-card,
.collection-meta,
.resource-item,
.sidebar-link {
  display: flex;
  align-items: center;
}

.breadcrumbs {
  gap: 7px;
  margin-bottom: 10px;
  color: #6a7c95;
  font-size: 12px;
  font-weight: 650;
}

.breadcrumbs svg {
  width: 12px;
  height: 12px;
}

.collections-hero-inner {
  justify-content: space-between;
  gap: 34px;
}

.collections-kicker {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: #eaf9f3;
  color: #009b5c;
  font-size: 12px;
  font-weight: 850;
}

.collections-hero h1 {
  margin: 10px 0 6px;
  color: #061738;
  font-size: 34px;
  line-height: 1.08;
  font-weight: 850;
}

.collections-hero p {
  max-width: 620px;
  margin: 0;
  color: #48607f;
  font-size: 15px;
  line-height: 1.48;
}

.collections-art {
  position: relative;
  flex: 0 0 390px;
  height: 128px;
  overflow: hidden;
  border-radius: 8px;
  background:
    linear-gradient(90deg, transparent, rgba(232, 247, 255, .82)),
    repeating-linear-gradient(90deg, rgba(8, 174, 100, .08) 0 1px, transparent 1px 40px);
}

.folder-back,
.folder-front {
  position: absolute;
  border-radius: 8px;
}

.folder-back {
  right: 92px;
  top: 34px;
  width: 150px;
  height: 68px;
  background: #ffe49d;
  transform: skewX(-8deg);
}

.folder-front {
  right: 76px;
  bottom: 20px;
  width: 172px;
  height: 76px;
  background: linear-gradient(135deg, #ffca4f, #f29d19);
  box-shadow: 0 18px 34px rgba(244, 160, 18, .22);
}

.paper {
  position: absolute;
  width: 62px;
  height: 82px;
  border: 1px solid #dce6f2;
  border-radius: 5px;
  background: #fff;
}

.paper-one {
  right: 200px;
  top: 20px;
  transform: rotate(-7deg);
}

.paper-two {
  right: 154px;
  top: 12px;
  transform: rotate(5deg);
}

.mini-calc {
  position: absolute;
  right: 56px;
  bottom: 18px;
  display: grid;
  grid-template-columns: repeat(2, 13px);
  gap: 7px;
  width: 62px;
  padding: 10px;
  border: 3px solid #0c315e;
  border-radius: 10px;
  background: #1e7da9;
}

.mini-calc::before {
  content: "";
  grid-column: 1 / -1;
  height: 14px;
  border-radius: 4px;
  background: #bfe7f2;
}

.mini-calc i {
  height: 11px;
  border-radius: 3px;
  background: #bfe7f2;
}

.art-dot {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #a3ecd2;
}

.dot-one {
  right: 34px;
  top: 25px;
}

.dot-two {
  right: 270px;
  bottom: 22px;
}

.collections-section {
  padding: 20px 0 22px;
}

.collections-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: start;
  gap: 22px;
}

.collections-main {
  min-width: 0;
}

.collection-search {
  height: 38px;
  gap: 10px;
  padding: 0 14px;
  border: 1px solid #dce6f2;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(25, 60, 102, .035);
}

.collection-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  color: #071b43;
  font-size: 13px;
}

.collection-toolbar {
  justify-content: space-between;
  gap: 18px;
  margin: 14px 0;
}

.collection-tabs {
  gap: 10px;
  flex-wrap: wrap;
}

.collection-tab {
  min-height: 30px;
  padding: 0 13px;
  border: 1px solid #dce6f2;
  border-radius: 7px;
  background: #fff;
  color: #173153;
  font-size: 12px;
  font-weight: 800;
}

.collection-tab.is-active {
  border-color: #08ae64;
  background: #f0fbf6;
  color: #009b5c;
}

.sort-select {
  gap: 8px;
  flex: 0 0 auto;
  color: #48607f;
  font-size: 12px;
  font-weight: 750;
}

.sort-select select {
  height: 34px;
  padding: 0 32px 0 12px;
  border: 1px solid #dce6f2;
  border-radius: 7px;
  background: #fff;
  color: #071b43;
  font-weight: 750;
}

.collection-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.collection-card {
  position: relative;
  align-items: flex-start;
  flex-direction: column;
  min-height: 146px;
  padding: 16px;
  overflow: hidden;
  border: 1px solid #dce6f2;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(25, 60, 102, .045);
}

.collection-card::after {
  content: "";
  position: absolute;
  inset: auto -32px -42px auto;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--collection-color) 12%, transparent);
}

.collection-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 9px;
  background: color-mix(in srgb, var(--collection-color) 15%, #fff);
  color: var(--collection-color);
}

.collection-card h2 {
  margin: 12px 0 4px;
  color: #061738;
  font-size: 15px;
  line-height: 1.15;
  font-weight: 850;
}

.collection-card p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: #48607f;
  font-size: 12px;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.collection-meta {
  gap: 8px;
  margin-top: auto;
  padding-top: 12px;
  color: #6a7c95;
  font-size: 11px;
  font-weight: 750;
}

.stars {
  color: #f5b917;
  letter-spacing: 0;
}

.collection-arrow {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 1;
  color: #071b43;
}

.collections-sidebar {
  position: sticky;
  top: 78px;
  display: grid;
  gap: 14px;
}

.popular-resources-card,
.stay-updated-card {
  border: 1px solid #dce6f2;
  border-radius: 8px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 14px 34px rgba(25, 60, 102, .055);
}

.popular-resources-card {
  padding: 16px;
}

.popular-resources-card h2,
.stay-updated-card h2 {
  margin: 0 0 12px;
  color: #061738;
  font-size: 16px;
  font-weight: 850;
}

.resource-list {
  display: grid;
  gap: 10px;
}

.resource-item {
  align-items: flex-start;
  gap: 10px;
  min-height: 58px;
  padding: 10px;
  border: 1px solid #e4ebf3;
  border-radius: 7px;
  background: #fff;
}

.resource-item > span:first-child {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #eef7ff;
  color: #1688ff;
}

.resource-item > span:last-child {
  min-width: 0;
  flex: 1;
}

.resource-item strong {
  display: -webkit-box;
  overflow: hidden;
  color: #061738;
  font-size: 12px;
  line-height: 1.15;
  font-weight: 850;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.resource-item p {
  display: -webkit-box;
  margin: 3px 0 0;
  overflow: hidden;
  color: #48607f;
  font-size: 11px;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.sidebar-link {
  gap: 6px;
  margin-top: 12px;
  color: #1688ff;
  font-size: 12px;
  font-weight: 850;
}

.stay-updated-card {
  padding: 16px;
  background:
    radial-gradient(circle at 100% 0%, rgba(22, 136, 255, .10), transparent 150px),
    linear-gradient(180deg, #f4fbff, #f1fbf6);
}

.stay-updated-card p {
  margin: 0 0 12px;
  color: #48607f;
  font-size: 12px;
  line-height: 1.4;
}

.stay-updated-card form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px;
  gap: 0;
}

.stay-updated-card input,
.stay-updated-card button {
  height: 36px;
  border: 1px solid #dce6f2;
  font-size: 12px;
}

.stay-updated-card input {
  min-width: 0;
  padding: 0 12px;
  border-radius: 6px 0 0 6px;
  outline: 0;
}

.stay-updated-card button {
  border-color: #08ae64;
  border-radius: 0 6px 6px 0;
  background: #08ae64;
  color: #fff;
  font-weight: 850;
}

.stay-updated-card small {
  display: block;
  margin-top: 9px;
  color: #48607f;
  font-size: 11px;
}

@media (max-width: 1180px) {
  .collections-hero-inner,
  .collections-layout {
    display: grid;
    grid-template-columns: 1fr;
  }

  .collections-art,
  .collections-sidebar {
    position: static;
  }

  .collections-art {
    width: 100%;
    flex-basis: auto;
  }

  .collections-sidebar {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .collection-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .collections-hero {
    padding: 14px 0 16px;
  }

  .collections-hero h1 {
    font-size: 28px;
  }

  .collections-art {
    height: 112px;
  }

  .collections-section {
    padding-top: 16px;
  }

  .collection-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .collection-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .collection-tabs::-webkit-scrollbar {
    display: none;
  }

  .collection-tab {
    flex: 0 0 auto;
  }

  .sort-select {
    justify-content: space-between;
  }

  .sort-select select {
    min-width: 170px;
  }

  .collection-grid,
  .collections-sidebar {
    grid-template-columns: 1fr;
  }

  .collection-card {
    min-height: 132px;
  }

  .stay-updated-card form {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .stay-updated-card input,
  .stay-updated-card button {
    border-radius: 6px;
  }
}
