.nml-clutch {
    padding: 80px 0;
    background: var(--color-bg);
    overflow: hidden; /* clip the swiper overflow */
}

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

.nml-clutch__top-left {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex: 1 1 auto;
}

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

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

/* Powered by */
.nml-clutch__powered {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    max-width: 204px;
    width: 100%;
}

.nml-clutch__powered-label {
    font-size: 15px;
    color: var(--color-text-secondary);
    white-space: nowrap;
}

.nml-clutch__powered-logo {
    max-height: 50px;
    width: auto;
    display: block;
}

/* ── Middle row: mentions + rating ── */
.nml-clutch__middle {
    display: flex;
    justify-content: space-between;
    gap: 50px;
    margin-bottom: 40px;
    align-items: flex-start;
}

.nml-clutch__middle-left {
    flex: 1 1 auto;
}

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

/* Mention tags */
.nml-clutch__mentions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 8px;
    margin-top: 24px;
}

.nml-clutch__mention {
    display: inline-flex;
    padding: 8px 16px;
    border: 1px solid var(--color-line);
    border-radius: 100px;
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
    color: var(--color-text-primary);
    background: #162F6F0A;
}

/* Rating box */
.nml-clutch__rating-box {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    border: 1px solid var(--color-line-blue);
    border-radius: 12px;
    background: var(--color-bg-secondary);
    min-width: 287px;
    box-shadow: 0px 2px 4px 0px #4C83F33D;
}

/* Logo inside rating-box — desktop hidden, mobile shown */
.nml-clutch__powered-logo--in-box {
    display: none;
}

/* Row wrapper: score left, stars+count right */
.nml-clutch__rating-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.nml-clutch__rating-right {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.nml-clutch__rating-score {
    font-size: 48px;
    font-weight: 700;
    color: var(--color-text-primary);
    line-height: 56px;
    margin-bottom: 16px;
}

.nml-clutch__stars {
    display: flex;
    gap: 3px;
    margin-bottom: 6px;
}

.nml-clutch__rating-count {
    font-size: 16px;
    line-height: 24px;
    color: var(--color-text-secondary);
    font-weight: 500;
}

/* ── Reviews header ── */
.nml-clutch__reviews-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.nml-clutch__more-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 16px;
    border: 1px solid var(--color-primary);
    border-radius: 8px;
    font-size: 12px;
    line-height: 16px;
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: none;
    transition: all 0.18s;
    white-space: nowrap;
    background-color: transparent;
}

.nml-clutch__more-btn svg path{
    transition: stroke 0.18s;
}

.nml-clutch__more-btn:hover {
    background: var(--primary-states-hover, #162F6F0A);
    border: 1px solid var(--color-primary-dark);
    color: var(--color-primary-dark);
}

.nml-clutch__more-btn:hover svg path {
    stroke: var(--color-primary-dark);
}

.nml-clutch__more-btn--mobile {
    display: none;
}

/* ── Slider wrap — breaks out of container ── */
.nml-clutch__slider-wrap {
    width: 100%;
    /* Clip the neighbouring slide at the container edge. Vertical padding keeps
       room for the card box-shadow, negative margin cancels the layout shift. */
    overflow: hidden;
    padding-block: 6px;
    margin-block: -6px;
}

.nml-clutch__swiper {
    overflow: visible;
}

.nml-clutch__slide {
    height: auto;
}

/* ── Review card ── */
.nml-clutch__card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 24px;
    border: 1px solid var(--color-line);
    border-radius: 12px;
    background: var(--color-bg);
    height: 100%;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.18s, border-color 0.18s;
    box-shadow: 0px 1px 2px 0px #4C83F333;
}

a.nml-clutch__card:hover {
    border: 1px solid #889CF1;
    box-shadow: 0px 2px 4px 0px #4C83F33D;
}

.nml-clutch__card-top {
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.nml-clutch__card-stars {
    display: flex;
}

.nml-clutch__card-stars svg {
    width: 32px;
    height: 32px;
}

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

/* Author row */
.nml-clutch__card-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
}

.nml-clutch__avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.nml-clutch__avatar--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-secondary);
    border: 1.5px solid var(--color-line);
}

.nml-clutch__author-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nml-clutch__author-name {
    font-size: 18px;
    line-height: 26px;
    font-weight: 700;
    color: var(--color-text-primary);
}

.nml-clutch__verified {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    line-height: 26px;
    font-weight: 500;
    color: var(--color-text-primary);
}

.nml-clutch__verified svg{
    width: 20px;
    height: 20px;
}

/* ── Nav row ── */
.nml-clutch__nav-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 32px;
}

.nml-clutch__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-clutch__nav:hover {
    border-color: var(--color-primary-border);
    box-shadow: 0 2px 10px rgba(22, 47, 111, 0.10);
}

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

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

    .nml-clutch__more-btn:not(.nml-clutch__more-btn--mobile) {
        display: none;
    }

    .nml-clutch__more-btn--mobile {
        display: flex;
        width: 100%;
        justify-content: center;
        margin-top: 24px;
        padding: 12px 8px;
        border-radius: 8px;
        font-size: 14px;
        line-height: 20px;
        font-weight: 700;
    }

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

    .nml-clutch__top-left {
        gap: 16px;
    }

    .nml-clutch__heading {
        font-size: 32px;
        line-height: 40px;
    }

    .nml-clutch__middle {
        flex-direction: column-reverse;
        gap: 24px;
        margin-bottom: 24px;
    }

    .nml-clutch__rating-box {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        padding: 16px;
        min-width: 0;
        gap: 12px;
        border-radius: 8px;
    }

    .nml-clutch__powered-logo--in-box--container{
        width: 100%;
        border-bottom: 1px solid #D5DAFA;
        padding-bottom: 16px;
        margin-bottom: 16px;
    }

    .nml-clutch__powered-logo--in-box {
        display: block;
        max-height: 40px;
        width: auto;
    }

    .nml-clutch__rating-row {
        flex-direction: row;
        align-items: center;
        gap: 16px;
        justify-content: space-between;
    }

    .nml-clutch__rating-right {
        align-items: center;
    }

    .nml-clutch__stars{
        margin-bottom: 4px;
        gap: 2px;
    }

    .nml-clutch__rating-score {
        font-size: 32px;
        line-height: 40px;
        margin-bottom: 0;
    }

    .nml-clutch__powered {
        display: none;
    }


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

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

    .nml-clutch__mentions {
        gap: 8px;
        margin-top: 16px;
    }

    .nml-clutch__mention {
        padding: 6px 12px;
        font-size: 14px;
        line-height: 20px;
    }

    .nml-clutch__card {
        padding: 20px;
        border-radius: 8px;
    }

    .nml-clutch__card-score {
        font-size: 24px;
        line-height: 32px;
    }

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

    .nml-clutch__card-text {
        font-size: 14px;
        line-height: 20px;
        margin: 0 0 32px;
    }

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

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

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

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

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