/* breaks out to 1294px so the 1180px card row keeps 56px arrow gutters */
.hc-inner {max-width: 1294px;margin: 0 auto;}
/* ------------------------------ Carousel -------------------------------- */
.hc-carousel {position: relative;padding: 0 56px;}
.hc-viewport {overflow: hidden;}
.hc-track {
  display: flex;
  gap: 18px;
  will-change: transform;
  transition: transform .45s cubic-bezier(.22, .61, .36, 1);
  cursor: grab;
  padding-top: 20px;
}
.hc-track.is-dragging {transition: none;cursor: grabbing;}
/* soft decorative glow (Figma "Ellipse 37") behind the prev arrow */
.hc-carousel::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 50%;
  width: 90px;
  height: 90px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(131, 7, 222, .18), rgba(131, 7, 222, 0) 70%);
  pointer-events: none;
  z-index: 0;
}
/* ------------------------------ Arrows ---------------------------------- */
.hc-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  z-index: 2;
  transition: background .18s ease, opacity .18s ease, box-shadow .18s ease;
}
.hc-arrow svg { width: 16px; height: 16px; display: block; }
.hc-arrow--prev {
  left: 5px;
  background: #fff;
  border: 1px solid var(--color-primary);
}
.hc-arrow--prev svg { stroke: var(--color-primary); }
.hc-arrow--prev:hover { background: #f5ecfd; }
.hc-arrow--next {
  right: 5px;
  background: var(--color-primary);
  border: 1px solid var(--color-primary);
}
.hc-arrow--next svg { stroke: #fff; }
.hc-arrow--next:hover { background: var(--color-primary-hover); }
.hc-arrow:disabled {
  opacity: .4;
  cursor: default;
  box-shadow: none;
}
.hc-arrow--prev:disabled:hover { background: #fff; }
.hc-arrow--next:disabled:hover { background: var(--color-primary-hover); }
/* ------------------------------ Card ------------------------------------ */
.hc-card {
  position: relative;
  flex: 0 0 282px;
  width: 282px;
  height: 262px;
  user-select: none;
  transition: all 0.7s;
}
/* folder back (faint lavender) */
.hc-card__back {
  position: absolute;
  inset: 0 0 auto 0;
  height: 261px;
  opacity: .2;                    /* matches Figma node opacity */
  z-index: 1;
}
.hc-card__back svg { width: 100%; height: 100%; display: block; }
/* diagram thumbnail window */
.hc-card__media {
    cursor: pointer;
    position: absolute;
    top: 52px;
    left: 0;
    right: 0;
    width: 84%;
    height: 170px;
    margin: auto;
    border-radius: 16px;
    overflow: hidden;
    z-index: 2;
    box-shadow: 0 0 16px rgba(0, 0, 0, 0.22);
    transition: all 0.5s;
}
.hc-card:hover .hc-card__media {top: 6px;width: 94%;height: 170px;}
.hc-card__media svg { width: 100%; height: 100%; display: block; }
/* folder front (solid purple) */
.hc-card__front {
  position: absolute;
  left: 0;
  top: 82px;
  width: 282px;
  height: 180px;
  z-index: 3;
}
.hc-card__front svg { width: 100%; height: 100%; display: block; }
/* icon badge */
.hc-card__icon {
  position: absolute;
  left: 20px;
  top: 100px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, .28), rgba(255, 255, 255, .06));
  z-index: 4;
}
.hc-card__icon svg { width: 30px; height: 30px; display: block; }
/* text block */
.hc-card__body {
  position: absolute;
  left: 24px;
  top: 160px;
  width: 211px;
  z-index: 4;
  color: #fff;
}
.hc-card__title {
  margin: 0 0 5px;
  font-weight: 700;
  font-size: 18px;
  line-height: 24px;
  text-transform: capitalize;
  color: #FFFFFF;
}
.hc-card__desc {
  margin: 0;
  font-weight: 400;
  font-size: 12px;
  line-height: 16.8px;
}
/* ------------------------------ Responsive ------------------------------ */
@media (max-width: 1300px) {
  .hc-inner { padding: 0 24px; }
  .hc-carousel { padding: 0 48px; }
  .hc-arrow--prev { left: 0; }
  .hc-arrow--next { right: 0; }
}
@media (max-width: 991px) {
  .hc-title { font-size: 32px; line-height: 36px; }
  .hc-head {
    flex-direction: column;
    align-items: flex-start;
  }
}
@media (max-width: 575px) {
  .hc-inner { padding: 0 16px; }
  .hc-carousel { padding: 0; }
  .hc-track {margin-bottom: 30px;}
  .hc-arrow--prev { right: 70px;transform: translateX(50%); }
  .hc-arrow--next { left: 0;right: -10px;transform: translateX(50%); }
  .hc-arrow {
      top: 96%;
      width: 32px;
      height: 32px;
      margin: 0 auto;
      box-shadow: 0 6px 18px rgba(20, 8, 40, .18);
  }
  .hc-title { font-size: 26px; line-height: 30px; }
}
