/* Glow category icons "Beauty capsules": two-tone gel capsules, picture in one half, name in the gel. */
@font-face {
  font-family: 'Anek Bangla';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../../fonts/anek-bangla-bengali.woff2') format('woff2');
  unicode-range: U+0951-0952, U+0964-0965, U+0980-09FE, U+200C-200D, U+25CC;
}
@font-face {
  font-family: 'Anek Bangla';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../../fonts/anek-bangla-latin.woff2') format('woff2');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC,
    U+2122, U+2212;
}
.ccp {
  position: relative;
  padding: clamp(1.4rem, 4vw, 2.4rem) clamp(0.9rem, 3vw, 2.2rem);
  background:
    radial-gradient(40% 50% at 90% 10%, #ffe2ec, transparent 70%),
    radial-gradient(40% 50% at 5% 90%, #e5dcff, transparent 70%), #fffafc;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.ccp .ccp-title {
  margin: 0 0 clamp(1.1rem, 3vw, 1.8rem);
  font-family: 'Anek Bangla', var(--font-display);
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.3rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.ccp-spill {
  display: grid;
  gap: 0.9rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 900px) {
  .ccp-spill {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.6rem 1.4rem;
  }
}
.ccp-item {
  --gel: #e85a8e;
  --gel-2: #f8a6c4;
  min-width: 0;
  rotate: -2deg;
}
.ccp-item:nth-child(even) {
  rotate: 2deg;
  padding-left: 12%;
}
.ccp-item:nth-child(odd) {
  padding-right: 12%;
}
.ccp-item:nth-child(4n + 2) {
  --gel: #8e6bd9;
  --gel-2: #c9b6f5;
}
.ccp-item:nth-child(4n + 3) {
  --gel: #e9a23b;
  --gel-2: #f8d68e;
}
.ccp-item:nth-child(4n + 4) {
  --gel: #2fa58a;
  --gel-2: #93dcc6;
}
@media (min-width: 900px) {
  .ccp-item:nth-child(n) {
    padding: 0;
  }
  .ccp-item:nth-child(3n + 2) {
    translate: 0 0.9rem;
  }
}
.ccp-capsule {
  position: relative;
  display: grid;
  grid-template-columns: 42% 58%;
  height: 4.6rem;
  color: #fff;
  text-decoration: none;
  border-radius: 999px;
  box-shadow: 0 16px 24px -16px rgb(60 20 50 / 0.55);
  transition:
    rotate 0.4s var(--ease),
    translate 0.4s var(--ease);
}
.ccp-capsule:hover {
  rotate: 2deg;
  translate: 0 -3px;
}
.ccp-capsule::after {
  content: '';
  position: absolute;
  top: 14%;
  left: 6%;
  right: 6%;
  height: 22%;
  background: linear-gradient(180deg, rgb(255 255 255 / 0.75), rgb(255 255 255 / 0));
  border-radius: 999px;
  pointer-events: none;
}
.ccp-half {
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #fff;
  border-radius: 999px 0 0 999px;
  box-shadow: inset -2px 0 0 rgb(0 0 0 / 0.08);
}
.ccp-half img,
.ccp-half .dzc-letter {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ccp-half .dzc-letter {
  font-family: 'Anek Bangla', var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--gel);
  background: #fff;
}
.ccp-gel {
  display: flex;
  align-items: center;
  min-width: 0;
  padding: 0 1.3rem 0 0.9rem;
  background:
    radial-gradient(120% 90% at 80% 100%, rgb(0 0 0 / 0.18), transparent 60%),
    linear-gradient(180deg, var(--gel-2), var(--gel));
  border-radius: 0 999px 999px 0;
}
.ccp-name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-family: 'Anek Bangla', var(--font);
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.2;
  text-shadow: 0 1px 2px rgb(0 0 0 / 0.25);
}
@media (prefers-reduced-motion: reduce) {
  .ccp-capsule {
    transition: none;
  }
}
