.hali-ce {
    --hali-ce-primary: #005d6d;
    --hali-ce-text: #09283a;
    --hali-ce-muted: #0b6d7b;
    --hali-ce-bg: #eaf2f4;
    --hali-ce-card: #ffffff;
    position: relative;
    width: 100%;
    padding: 24px 28px 28px;
    overflow: hidden;
    background: var(--hali-ce-bg);
}

.hali-ce,
.hali-ce * {
    box-sizing: border-box;
}

.hali-ce__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 18px;
}

.hali-ce__heading-wrap {
    min-width: 0;
}

.hali-ce__heading {
    margin: 0;
    color: var(--hali-ce-primary);
    font-size: clamp(24px, 2.2vw, 32px);
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
}

.hali-ce__heading-line {
    display: block;
    width: 38px;
    height: 4px;
    margin-top: 9px;
    background: var(--hali-ce-primary);
    border-radius: 999px;
}

.hali-ce__nav {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 10px;
}

.hali-ce .hali-ce__arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    min-width: 0;
    height: 40px;
    min-height: 0;
    margin: 0;
    padding: 0;
    color: var(--hali-ce-primary);
    cursor: pointer;
    appearance: none;
    background: #fff;
    border: 1px solid rgba(0, 93, 109, .12);
    border-radius: 50%;
    box-shadow: none;
    transition: background-color .18s ease, border-color .18s ease, color .18s ease, opacity .18s ease;
}

.hali-ce__arrow svg {
    display: block;
    width: 18px;
    height: 18px;
    pointer-events: none;
}

.hali-ce .hali-ce__arrow:hover,
.hali-ce .hali-ce__arrow:focus-visible {
    color: var(--hali-ce-primary);
    background: #f2f7f8;
    border-color: var(--hali-ce-primary);
    outline: none;
    box-shadow: none;
    transform: none;
}

.hali-ce .hali-ce__arrow:focus-visible {
    outline: 2px solid rgba(0, 93, 109, .22);
    outline-offset: 2px;
}

.hali-ce .hali-ce__arrow:disabled {
    cursor: not-allowed;
    opacity: .35;
}

.hali-ce__viewport {
    width: 100%;
    overflow: hidden;
    touch-action: pan-y;
}

.hali-ce__track {
    display: flex;
    width: 100%;
    transition: transform .36s cubic-bezier(.22, .61, .36, 1);
    will-change: transform;
}

.hali-ce__slide {
    display: grid;
    flex: 0 0 100%;
    gap: 16px;
    min-width: 0;
}

.hali-ce__card {
    display: flex;
    align-items: stretch;
    width: 100%;
    min-width: 0;
    min-height: 156px;
    overflow: hidden;
    background: var(--hali-ce-card);
    border: 1px solid rgba(0, 93, 109, .05);
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(8, 47, 58, .035);
}

/* Không áp hiệu ứng hover lên card để bố cục ổn định và không tạo cảm giác nhảy khối. */
.hali-ce__card:hover {
    transform: none;
}

.hali-ce__media {
    position: relative;
    flex: 0 0 150px;
    width: 150px;
    height: 156px;
    min-height: 156px;
    overflow: hidden;
    background: #f4f7f8;
}

.hali-ce__image,
.hali-ce__placeholder {
    display: block;
    width: 100%;
    height: 100%;
}

.hali-ce__image {
    object-fit: cover;
    object-position: center top;
}

.hali-ce__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--hali-ce-primary);
    font-size: 44px;
    font-weight: 700;
    background: linear-gradient(135deg, #f7fbfc, #dfecef);
}

.hali-ce__content {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: 20px 28px;
}

.hali-ce__quote {
    margin: 0 0 14px;
    color: var(--hali-ce-text);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.55;
}

.hali-ce__person {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.hali-ce__name {
    color: var(--hali-ce-primary);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
}

.hali-ce__detail {
    color: var(--hali-ce-muted);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
}

.hali-ce-empty {
    padding: 18px;
    color: #555;
    background: #f6f7f7;
    border: 1px dashed #ccd0d4;
    border-radius: 10px;
}

@media (max-width: 1024px) {
    .hali-ce {
        padding: 22px 22px 24px;
    }

    .hali-ce__media {
        flex-basis: 136px;
        width: 136px;
    }

    .hali-ce__content {
        padding: 18px 22px;
    }
}

@media (max-width: 767px) {
    .hali-ce {
        padding: 18px 14px;
    }

    .hali-ce__header {
        align-items: center;
        gap: 14px;
        margin-bottom: 16px;
    }

    .hali-ce__heading {
        font-size: 22px;
    }

    .hali-ce__nav {
        gap: 8px;
    }

    .hali-ce .hali-ce__arrow {
        width: 36px;
        height: 36px;
    }

    .hali-ce__slide {
        gap: 12px;
    }

    .hali-ce__card {
        min-height: 148px;
    }

    .hali-ce__media {
        flex-basis: 104px;
        width: 104px;
        height: 148px;
        min-height: 148px;
    }

    .hali-ce__content {
        padding: 14px;
    }

    .hali-ce__quote {
        margin-bottom: 10px;
        font-size: 14px;
        line-height: 1.48;
    }

    .hali-ce__name,
    .hali-ce__detail {
        font-size: 13px;
    }
}

@media (max-width: 420px) {
    .hali-ce__header {
        gap: 10px;
    }

    .hali-ce__heading {
        font-size: 20px;
    }

    .hali-ce__heading-line {
        width: 32px;
    }

    .hali-ce__media {
        flex-basis: 92px;
        width: 92px;
    }

    .hali-ce__content {
        padding: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hali-ce__track,
    .hali-ce__arrow {
        transition: none !important;
    }
}
