.hc-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 38px;
    justify-content: center;
}


.hc-card {
    position: relative;
    height: 260px;
    width: 392px;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    /* background: #1c1d1e; */
    background: #000;
    box-shadow: inset 0px 5px 40px 5px rgb(255 255 255 / 40%);
}

/* Tablet */
@media (max-width: 1024px) {
  .hc-card {
    height: 300px;
    width: 550px;
  }
}
/* Mobile */
@media (max-width: 640px) {
  .hc-card {
    height: 260px;
    width: 392px;
  }
}

.hc-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.4;
    transition: opacity 0.6s ease, background-image 0.6s ease;
}

.hc-card:hover .hc-bg {
    opacity: 0.6;
}

.hc-card.is-active .hc-bg {
    opacity: 0.6;
}


.hc-content {
    position: relative;
    z-index: 2;
    padding: 20px;
    color: #fff;

    display: flex;
    flex-direction: column;
    height: 100%;
}

.hc-client {
    margin-bottom: 8px;
    font-weight: 600;

    flex-shrink: 0;
}

.hc-review-wrapper {
    display: grid;
    grid-template-rows: auto 1fr auto;

    position: relative;
    flex: 1; /* takes remaining height */
    overflow: hidden;
}

.hc-quote {
    font-size: 42px;
    line-height: 1;
    color: rgba(255, 255, 255, 0.7);
    pointer-events: none;
    font-family: serif;
}

.hc-quote-open {
    justify-self: start;
}

.hc-quote-close {
    justify-self: end;
}



.hc-review {
    position: relative;

    text-align: center;

    font-size: 15.5px;

    overflow-y: auto;        /* scroll inside card */

    --fade-top: 0px;
    --fade-bottom: 0px;

    mask-image: linear-gradient(
        to bottom,
        transparent,
        black var(--fade-top),
        black calc(100% - var(--fade-bottom)),
        transparent
    );

    -webkit-mask-image: linear-gradient(
        to bottom,
        transparent,
        black var(--fade-top),
        black calc(100% - var(--fade-bottom)),
        transparent
    );

    transition: mask-image 0.2s ease, -webkit-mask-image 0.2s ease;

    /* On touch devices, prevent accidental page scroll fighting card scroll */
    -webkit-overflow-scrolling: touch;
}

.hc-review::-webkit-scrollbar {
    width: 4px;
}

.hc-review::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.4);
    border-radius: 4px;
}

.hc-review-inner {
    transition: opacity 0.35s ease, transform 0.35s ease;
    will-change: opacity, transform;
}

.hc-review.is-exit-left .hc-review-inner {
    opacity: 0;
    transform: translateX(-12px);
}

.hc-review.is-exit-right .hc-review-inner {
    opacity: 0;
    transform: translateX(12px);
}

.hc-review.is-enter .hc-review-inner {
    opacity: 0;
    transform: translateX(0);
}

.hc-indicators {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 6;
}

.hc-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.35);
    transition: background 0.3s ease, transform 0.3s ease;
}

.hc-dot.active {
    background: #fff;
    transform: scale(1.3);
}
