.nml-vreviews {
    padding: 80px 0;
    background: var(--color-bg);
    overflow: hidden;
}

/* ── Header ── */
.nml-vreviews__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 48px;
}

.nml-vreviews__header-left {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.nml-vreviews__heading {
    font-size: 48px;
    font-weight: 700;
    line-height: 56px;
    margin: 0;
    color: var(--color-text-primary);
}

/* Wrap a word in <span> to give it the accent colour. */
.nml-vreviews__heading span { color: var(--color-accent); }

/* Nav in header */
.nml-vreviews__nav-wrap {
    display: flex;
    gap: 16px;
    flex-shrink: 0;
}

/* ── Slider — full width overflow ── */
.nml-vreviews__slider-wrap { width: 100%; }

.nml-vreviews__swiper {
    overflow: visible;
}

.nml-vreviews__slide {
    height: auto;
}

/* ── Card ── */
.nml-vreviews__card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--color-line);
    border-radius: 12px;
    overflow: hidden;
    background: var(--color-bg);
    height: 100%;
    box-shadow: 0px 2px 4px 0px #4C83F33D;
}

/* ── Preview ── */
.nml-vreviews__preview {
    position: relative;
    width: 100%;
    background: var(--color-bg-secondary);
    overflow: hidden;
    display: block;
    text-decoration: none;
    border: none;
    border-bottom: 1px solid #D5DAFA;
    padding: 0;
    font: inherit;
    color: inherit;
}

button.nml-vreviews__preview[data-video] {
    cursor: pointer;
}

.nml-vreviews__preview-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.nml-vreviews__preview:hover .nml-vreviews__preview-img {
    transform: scale(1.03);
}

.nml-vreviews__preview-placeholder {
    width: 100%;
    height: 100%;
    background: var(--color-bg-secondary);
}

/* Play button */
.nml-vreviews__play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #FFFFFF66;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    box-shadow: 0px 2px 8px 0px #0000003D;
    pointer-events: none;
    transition: transform 0.2s ease, background 0.2s;
}

.nml-vreviews__preview:hover .nml-vreviews__play-btn {
    background: #fff;
    transform: translate(-50%, -50%) scale(1.1);
}

/* ── Card body ── */
.nml-vreviews__card-body {
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    text-align: center;
}

.nml-vreviews__author-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nml-vreviews__author {
    font-size: 24px;
    line-height: 32px;
    font-weight: 700;
    color: var(--color-text-primary);
}

.nml-vreviews__linkedin {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    border-radius: 4px;
    overflow: hidden;
    transition: opacity 0.18s;
}

.nml-vreviews__linkedin:hover { opacity: 0.8; }

.nml-vreviews__linkedin svg {
    width: 24px;
    height: 24px;
}

.nml-vreviews__desc {
    font-size: 18px;
    color: var(--color-text-secondary);
    margin: 0;
    line-height: 26px;
    font-weight: 500;
}

/* ── Nav buttons (shared: header + nav-row) ── */
.nml-vreviews__nav {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    border: 1px solid #889CF1;
    background: #F5F6FA;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #889CF1;
    transition: border-color 0.18s, box-shadow 0.18s;
    flex-shrink: 0;
}

.nml-vreviews__nav:hover {
    border-color: var(--color-primary-border);
    box-shadow: 0 2px 10px rgba(22, 47, 111, 0.10);
}

.nml-vreviews__nav.swiper-button-disabled {
    opacity: 0.4;
    pointer-events: none;
}

/* ── Nav row below slider ── */
.nml-vreviews__nav-row {
    display: grid;
    grid-template-columns: 48px 1fr 48px;
    align-items: center;
    gap: 16px;
    margin-top: 32px;
}

.nml-vreviews__pagination {
    display: flex;
    gap: 4px;
    align-items: center;
    justify-content: center;
}

.nml-vreviews__pagination .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    border-radius: 100px;
    background: var(--color-line);
    opacity: 1;
    transition: background 0.18s, width 0.18s;
    cursor: pointer;
    margin: 0 !important;
}

.nml-vreviews__pagination .swiper-pagination-bullet-active {
    background: var(--color-primary);
    width: 32px;
    border-radius: 100px;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .nml-vreviews { padding: 40px 0; }

    .nml-vreviews__header {
        align-items: center;
        flex-direction: column;
        margin-bottom: 32px;
    }

    .nml-vreviews__header-left {
        gap: 16px;
        width: 100%;
    }

    .nml-vreviews__nav-wrap {
        display: none;
    }

    .nml-vreviews__heading {
        font-size: 32px;
        line-height: 40px;
        font-weight: 700;
        text-align: left;
    }

    .nml-vreviews__play-btn {
        width: 44px;
        height: 44px;
    }

    .nml-vreviews__card-body{
        padding: 20px;
    }

    .nml-vreviews__author {
        font-size: 18px;
        line-height: 26px;
    }

    .nml-vreviews__linkedin svg {
        width: 18px;
        height: 18px;
    }

    .nml-vreviews__desc {
        font-size: 14px;
        line-height: 20px;
    }

    .nml-vreviews__nav-row {
        margin-top: 24px;
    }

    .nml-vreviews__nav {
        width: 44px;
        height: 44px;
    }

}

/* ── Video popup ── */
.nml-vreviews__modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1100;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.nml-vreviews__modal.is-open {
    display: flex;
}

.nml-vreviews__modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(6, 8, 11, 0.72);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.nml-vreviews__modal-dialog {
    position: relative;
    width: 100%;
    max-width: 960px;
}

.nml-vreviews__modal-close {
    position: absolute;
    top: -44px;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    z-index: 2;
}

.nml-vreviews__modal-video {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 24px 64px rgba(11, 16, 31, 0.4);
}

.nml-vreviews__modal-video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

@media (max-width: 768px) {
    .nml-vreviews__modal { padding: 16px; }
    .nml-vreviews__modal-close { top: -40px; }
}
