/*--------------------------------------------------------------
# Clients Two - valued clients grid (theme-matched)
--------------------------------------------------------------*/
.clients-two {
    position: relative;
    display: block;
    background-color: var(--finris-white);
    padding: 75px 0 55px;
    overflow: hidden;
    z-index: 1;
}

.clients-two__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 48px;
    margin-bottom: 25px;
    width: 100%;
}

.clients-two__header .section-title-two {
    margin-bottom: 0;
    flex-shrink: 0;
}

.clients-two__intro {
    flex: 1 1 auto;
    max-width: none;
    margin: 0;
    padding-left: 0;
    border-left: none;
}

.clients-two__text {
    margin: 0 0 8px;
    color: var(--finris-gray);
    font-size: 14.5px;
    line-height: 1.7;
    text-align: justify;
    text-justify: inter-word;
}

.clients-two__text:last-child {
    margin-bottom: 0;
}

.clients-two__grid {
    list-style: none;
    margin: 0 auto;
    padding: 0;
    display: grid;
    width: 100%;
    grid-template-columns: repeat(11, minmax(0, 1fr));
    gap: 6px 6px;
    align-items: stretch;
}

.clients-two__item {
    margin: 0;
}

@media (min-width: 1200px) {
    /* Center the last row when it has fewer than 11 items in the 11-column grid */
    .clients-two__grid:not(.clients-two__grid--rows) > .clients-two__item:nth-child(11n + 1):nth-last-child(9),
    .clients-two__grid:not(.clients-two__grid--rows) > .clients-two__item:nth-child(11n + 1):nth-last-child(8) {
        grid-column-start: 2;
    }
    .clients-two__grid:not(.clients-two__grid--rows) > .clients-two__item:nth-child(11n + 1):nth-last-child(7),
    .clients-two__grid:not(.clients-two__grid--rows) > .clients-two__item:nth-child(11n + 1):nth-last-child(6) {
        grid-column-start: 3;
    }
    .clients-two__grid:not(.clients-two__grid--rows) > .clients-two__item:nth-child(11n + 1):nth-last-child(5),
    .clients-two__grid:not(.clients-two__grid--rows) > .clients-two__item:nth-child(11n + 1):nth-last-child(4) {
        grid-column-start: 4;
    }
    .clients-two__grid:not(.clients-two__grid--rows) > .clients-two__item:nth-child(11n + 1):nth-last-child(3),
    .clients-two__grid:not(.clients-two__grid--rows) > .clients-two__item:nth-child(11n + 1):nth-last-child(2) {
        grid-column-start: 5;
    }
    .clients-two__grid:not(.clients-two__grid--rows) > .clients-two__item:nth-child(11n + 1):last-child {
        grid-column-start: 6;
    }
}

.clients-two__card {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 0;
    min-height: 82px;
    padding: 5px 3px;
    border: none;
    border-radius: var(--finris-bdr-radius);
    background-color: var(--finris-white);
    box-shadow: none;
    transition: transform 0.3s ease;
}

/* logos that come with their own coloured background: the colour fills the whole box */
.clients-two__card--filled {
    border-color: transparent;
}

/* image fills the entire box (used for logos with a gradient background) */
.clients-two__card--cover {
    overflow: hidden;
}

.clients-two__card.clients-two__card--cover img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: cover;
}

.clients-two__card:hover {
    box-shadow: none;
    transform: translateY(-2px);
}

.clients-two__card img {
    display: block;
    width: auto;
    max-width: 82%;
    max-height: 46px;
    object-fit: contain;
    transform: scale(0.82);
    transition: transform 0.35s ease;
}

.clients-two__card:hover img {
    transform: scale(0.92);
}

/* Square-shaped (approx. 1:1) logos: remove top/bottom padding and balance scale */
.clients-two__card--square {
    padding-top: 0;
    padding-bottom: 0;
}

.clients-two__card--square img {
    max-height: 58px;
    max-width: 78%;
    transform: scale(0.84);
}

.clients-two__card--square:hover img {
    transform: scale(0.94);
}

/* Logos with solid/dark backgrounds: 4 corners curved (border-radius) */
.clients-two__card img.clients-two__img--rounded {
    border-radius: 6px;
}

.clients-two__more {
    position: relative;
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

@media (max-width: 1199px) {
    .clients-two__grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    .clients-two {
        padding: 60px 0 50px;
    }

    .clients-two__header {
        align-items: flex-start;
        flex-direction: column;
        gap: 16px;
    }

    .clients-two__intro {
        max-width: 100%;
        padding-left: 0;
        border-left: none;
    }

    .clients-two__grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 575px) {
    .clients-two__header {
        margin-bottom: 20px;
        gap: 16px;
    }

    .clients-two__text {
        text-align: left;
    }

    .clients-two__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 6px;
    }

    .clients-two__grid:not(.clients-two__grid--rows) > .clients-two__item:nth-child(3n + 1):last-child {
        grid-column-start: 2;
    }

    .clients-two__card {
        min-height: 76px;
        padding: 6px 3px;
    }

    .clients-two__card img {
        max-width: 84%;
        max-height: 40px;
        transform: scale(0.88);
    }

    .clients-two__card--square {
        padding-top: 0;
        padding-bottom: 0;
    }

    .clients-two__card--square img {
        max-height: 50px;
        max-width: 80%;
        transform: scale(0.90);
    }
}

/* Row-card layout: logo + client name side by side, like a partner list */
.clients-two__grid--rows {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 24px;
}

.clients-two__row {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 10px 10px 22px;
    border-bottom: 2px solid var(--finris-primary);
    height: 100%;
}

.clients-two__row .clients-two__card {
    flex: 0 0 110px;
    width: 110px;
    height: 110px;
    min-height: 0;
    margin: 0;
    padding: 6px 4px;
}

.clients-two__row .clients-two__card img {
    max-width: 92%;
    max-height: 72px;
}

/* Square-shaped (approx. 1:1) logos in row layout (projects page) */
.clients-two__row .clients-two__card--square {
    padding-top: 0;
    padding-bottom: 0;
}

.clients-two__row .clients-two__card--square img {
    max-height: 94px;
    max-width: 94px;
    transform: scale(1.08);
}

.clients-two__row .clients-two__card--square:hover img {
    transform: scale(1.15);
}

.clients-two__row .clients-two__card img.clients-two__img--rounded {
    border-radius: 8px;
}

.clients-two__info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.clients-two__row-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.clients-two__name {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: var(--finris-base);
    line-height: 1.3;
}

.clients-two__location {
    margin: 0;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--finris-primary);
}

.clients-two__location i {
    margin-right: 4px;
    font-size: 11px;
}

.clients-two__desc {
    margin: 2px 0 0;
    font-size: 13px;
    line-height: 1.5;
    color: var(--finris-gray);
}

@media (max-width: 767px) {
    .clients-two__grid--rows {
        grid-template-columns: 1fr;
    }

    .clients-two__row .clients-two__card {
        flex: 0 0 90px;
        width: 90px;
        height: 90px;
        padding: 4px;
    }

    .clients-two__row .clients-two__card--square {
        padding-top: 0;
        padding-bottom: 0;
    }

    .clients-two__row .clients-two__card--square img {
        max-height: 78px;
        max-width: 78px;
        transform: scale(1.08);
    }
}