/* ============================================================
   Julyem Reviews Carousel - "Nhỏ To Chia Sẻ"
   ============================================================ */

.jl-reviews {
    --jl-navy: #0B3F66;
    --jl-navy-deep: #082f4d;
    --jl-gold: #CFA56A;
    background: transparent;
    padding: 64px 16px 72px;
    overflow: hidden;
    position: relative;
}

.jl-reviews-inner {
    position: relative;
    z-index: 1;
    max-width: 1180px;
    margin: 0 auto;
}

/* ---------- Tiêu đề ---------- */
.jl-rv-heading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin: 0 0 44px;
    color: var(--jl-gold);
    font-size: clamp(22px, 3vw, 32px);
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-align: center;
}

.jl-rv-heading-text {
    text-shadow: 0 1px 8px rgba(207, 165, 106, .25);
}

.jl-rv-orn {
    flex: 0 0 auto;
    width: clamp(40px, 9vw, 120px);
    height: 12px;
    position: relative;
}

.jl-rv-orn::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--jl-gold));
    transform: translateY(-50%);
}

.jl-rv-orn-left::before {
    background: linear-gradient(90deg, transparent, var(--jl-gold));
}

.jl-rv-orn-right::before {
    background: linear-gradient(90deg, var(--jl-gold), transparent);
}

/* Viên kim cương nhỏ ở đầu mút */
.jl-rv-orn::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 7px;
    height: 7px;
    background: var(--jl-gold);
    transform: translateY(-50%) rotate(45deg);
}

.jl-rv-orn-left::after { right: 0; }
.jl-rv-orn-right::after { left: 0; }

/* ---------- Carousel ---------- */
.jl-rv-carousel {
    display: flex;
    align-items: center;
    gap: 16px;
}

.jl-rv-viewport {
    flex: 1 1 auto;
    overflow: hidden;
}

.jl-rv-track {
    display: flex;
    gap: 24px;
    transition: transform .45s cubic-bezier(.4, .2, .2, 1);
    will-change: transform;
}

/* ---------- Card ---------- */
.jl-rv-card {
    flex: 0 0 auto;
    box-sizing: border-box;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(207, 165, 106, .35);
    border-radius: 14px;
    padding: 30px 28px 26px;
    display: flex;
    flex-direction: column;
    min-height: 220px;
    backdrop-filter: blur(2px);
}

.jl-rv-quote {
    color: var(--jl-gold);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 56px;
    line-height: .6;
    height: 32px;
    margin-bottom: 14px;
    opacity: .9;
}

.jl-rv-text {
    color: #e8eef4;
    font-size: 15px;
    line-height: 1.75;
    margin: 0 0 22px;
    flex: 1 1 auto;
}

.jl-rv-foot {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: auto;
}

.jl-rv-avatar {
    flex: 0 0 auto;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--jl-gold);
    background: linear-gradient(135deg, #d8b277, #b8894a);
    box-shadow: 0 2px 10px rgba(0, 0, 0, .3);
}

.jl-rv-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.jl-rv-avatar-initial {
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
}

.jl-rv-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.jl-rv-name {
    color: #fff;
    font-weight: 700;
    font-size: 16px;
}

.jl-rv-stars {
    display: inline-flex;
    gap: 3px;
}

.jl-rv-star {
    fill: rgba(255, 255, 255, .2);
}

.jl-rv-star.is-on {
    fill: var(--jl-gold);
}

/* ---------- Nút điều hướng ---------- */
.jl-reviews .jl-rv-nav {
    flex: 0 0 auto;
    box-sizing: border-box;
    width: 48px;
    height: 48px;
    min-width: 0;
    min-height: 0;
    max-width: none;
    padding: 0;
    margin: 0;
    line-height: 1;
    border-radius: 50%;
    border: 1px solid rgba(207, 165, 106, .55);
    background: transparent;
    color: var(--jl-gold);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s, color .2s, transform .2s, opacity .2s;
    -webkit-appearance: none;
    appearance: none;
}

.jl-reviews .jl-rv-nav svg {
    width: 28px;
    height: 28px;
    display: block;
}

.jl-rv-nav:hover {
    background: var(--jl-gold);
    color: var(--jl-navy-deep);
    transform: scale(1.06);
}

.jl-rv-nav:disabled {
    opacity: .3;
    cursor: default;
    transform: none;
    background: transparent;
    color: var(--jl-gold);
}

/* ---------- Dots ---------- */
.jl-rv-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 32px;
}

.jl-rv-dot {
    flex: 0 0 auto;
    box-sizing: border-box;
    width: 10px;
    height: 10px;
    min-width: 0;
    min-height: 0;
    padding: 0;
    border-radius: 50%;
    border: none;
    background: rgba(207, 165, 106, .35);
    cursor: pointer;
    transition: background .2s, transform .2s;
    -webkit-appearance: none;
    appearance: none;
}

.jl-rv-dot.is-active {
    background: var(--jl-gold);
    transform: scale(1.25);
}

/* ---------- Responsive ----------
   Chiều rộng card được JS tính theo số card hiển thị / breakpoint. */
@media (max-width: 600px) {
    .jl-reviews {
        padding: 48px 12px 56px;
    }
    .jl-rv-card {
        padding: 26px 22px 22px;
    }

    /* Nút điều hướng nhỏ lại, nằm ngoài viền card */
    .jl-rv-carousel {
        gap: 6px;
    }
    .jl-reviews .jl-rv-nav {
        width: 32px;
        height: 32px;
    }
    .jl-reviews .jl-rv-nav svg {
        width: 18px;
        height: 18px;
    }
}
