/* ==========================================================
   HV Brand Story – Câu chuyện Engler + ảnh feedback khách hàng
   ========================================================== */
.hv-story {
    --hv-s-primary: var(--e-global-color-primary, #6F5E4B);
    --hv-s-accent: var(--e-global-color-secondary, #922B2A);
    --hv-s-text: #1d2733;
    --hv-s-muted: #5b6672;
    --hv-s-card-w: 320px;
    --hv-s-gap: 20px;
    display: grid;
    grid-template-columns: minmax(280px, 4fr) minmax(0, 8fr);
    align-items: center;
    gap: 56px;
    font-family: var(--e-global-typography-primary-font-family, "Roboto Flex"), sans-serif;
    color: var(--hv-s-text);
}

/* ---------- Bên trái: câu chuyện ---------- */
.hv-story__intro {
    min-width: 0;
}

.hv-story__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    color: var(--hv-s-accent);
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
}

.hv-story__title {
    margin: 0 0 18px;
    color: var(--hv-s-primary);
    font-size: clamp(26px, 3vw, 40px);
    font-weight: 700;
    line-height: 1.2;
}

.hv-story__desc {
    color: var(--hv-s-muted);
    font-size: 16px;
    line-height: 1.75;
}

.hv-story__desc p {
    margin: 0 0 12px;
}

.hv-story__desc p:last-child {
    margin-bottom: 0;
}

.hv-story__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 32px;
    margin: 28px 0 0;
    padding: 22px 0 0;
    border-top: 1px solid #e6e8eb;
}

.hv-story__stat dt {
    color: var(--hv-s-primary);
    font-size: 30px;
    font-weight: 800;
    line-height: 1.1;
}

.hv-story__stat dd {
    margin: 4px 0 0;
    color: var(--hv-s-muted);
    font-size: 13.5px;
}

.hv-story__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 32px;
}

.hv-story__btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 26px;
    border-radius: 999px;
    background: var(--hv-ink, #1f1f1f);
    color: #fff !important;
    font-size: 14.5px;
    font-weight: 600;
    text-decoration: none !important;
    transition: background .25s ease, box-shadow .25s ease;
}

.hv-story__btn:hover {
    background: var(--hv-ink-hover, #6e6969);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .18);
}

.hv-story__btn svg {
    transition: transform .25s ease;
}

.hv-story__btn:hover svg {
    transform: translateX(4px);
}

.hv-story__nav {
    display: flex;
    gap: 10px;
}

.hv-story .hv-story__arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1px solid #d5dbe2;
    border-radius: 50%;
    background: #fff;
    color: var(--hv-s-primary);
    cursor: pointer;
    transition: background .2s ease, color .2s ease, border-color .2s ease, opacity .2s ease;
}

.hv-story .hv-story__arrow:hover:not(:disabled),
.hv-story .hv-story__arrow:focus-visible {
    background: var(--hv-s-primary);
    border-color: var(--hv-s-primary);
    color: #fff;
}

.hv-story .hv-story__arrow:disabled {
    opacity: .35;
    cursor: default;
}

/* ---------- Bên phải: dải ảnh feedback ---------- */
.hv-story__gallery {
    position: relative;
    min-width: 0;
}

.hv-story__track {
    display: flex;
    gap: var(--hv-s-gap);
    overflow-x: auto;
    padding: 8px 2px 24px;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    outline: none;
}

.hv-story__track::-webkit-scrollbar {
    display: none;
}

.hv-story__card {
    position: relative;
    flex: 0 0 var(--hv-s-card-w);
    margin: 0;
    aspect-ratio: 4 / 6;
    overflow: hidden;
    border-radius: 22px;
    background: #e9e6e0;
    box-shadow: 0 14px 32px rgba(16, 24, 40, .1);
    scroll-snap-align: start;
    isolation: isolate;
    transition: transform .4s ease, box-shadow .4s ease;
}

/* So le nhẹ tạo cảm giác "ảnh dán" */
.hv-story__card:nth-child(even) {
    margin-top: 28px;
}

.hv-story__card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 44px rgba(16, 24, 40, .16);
}

.hv-story__img {
    position: absolute;
    inset: 0;
    z-index: -1;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover;
    transition: transform 1s cubic-bezier(.2, .7, .2, 1);
}

.hv-story__card:hover .hv-story__img {
    transform: scale(1.05);
}

.hv-story__quote-mark {
    position: absolute;
    top: 14px;
    right: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--hv-ink, #1f1f1f);
    color: #fff;
    font-family: Georgia, serif;
    font-size: 34px;
    line-height: 1;
    padding-top: 12px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .25);
}

.hv-story__caption {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px 18px;
    border: 1px solid rgba(255, 255, 255, .6);
    border-radius: 16px;
    background: rgba(255, 255, 255, .86);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
}

.hv-story__stars {
    color: #f5a623;
    font-size: 14px;
    letter-spacing: 2px;
    line-height: 1;
}

.hv-story__stars i {
    font-style: normal;
    color: #d5d9de;
}

.hv-story__quote {
    margin: 0;
    padding: 0;
    border: 0;
    color: var(--hv-s-text);
    font-size: 14.5px;
    font-style: normal;
    font-weight: 500;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hv-story__person {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(111, 94, 75, .1);
}

.hv-story__avatar {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    overflow: hidden;
    border-radius: 50%;
    background: var(--hv-s-primary);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}

.hv-story__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hv-story__who {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.35;
}

.hv-story__who strong {
    color: var(--hv-s-primary);
    font-size: 14px;
    font-weight: 700;
}

.hv-story__who span,
.hv-story__who a {
    overflow: hidden;
    color: var(--hv-s-muted) !important;
    font-size: 12.5px;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-decoration: none !important;
}

.hv-story__who a:hover {
    color: var(--hv-s-accent) !important;
}

/* Thanh tiến trình */
.hv-story__progress {
    position: relative;
    height: 3px;
    margin: 4px 2px 0;
    overflow: hidden;
    border-radius: 3px;
    background: #e3e6ea;
}

.hv-story__progress span {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 30%;
    border-radius: 3px;
    background: var(--hv-s-primary);
    transition: left .3s ease, width .3s ease;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .hv-story {
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
    }

    .hv-story__intro {
        max-width: 640px;
    }
}

@media (max-width: 767px) {
    .hv-story {
        --hv-s-card-w: 78%;
        --hv-s-gap: 12px;
    }

    .hv-story__desc {
        font-size: 15px;
    }

    .hv-story__stat dt {
        font-size: 24px;
    }

    .hv-story__actions {
        margin-top: 24px;
    }

    .hv-story__nav {
        display: none;
    }

    .hv-story__card:nth-child(even) {
        margin-top: 0;
    }

    .hv-story__caption {
        padding: 12px 14px;
        gap: 8px;
    }

    .hv-story__quote {
        font-size: 13.5px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hv-story *,
    .hv-story__track {
        transition: none !important;
        scroll-behavior: auto;
    }
}
