.solutions-features__content {
    max-width: 1150px;
}

.solutions-features {
    margin: 100px 0;
    position: relative;
    z-index: 10;

    @media (max-width: 768px) {
        margin: 40px 0;
    }

    .heading-container {
        span {
            color: var(--Fills-Action, #1d4ed8);
        }
        .distinct--text {
            margin-bottom: 0 !important;
            font-family: 'Inter';

            @media (max-width: 540px) {
                text-align: left;
            }
        }
        margin-bottom: 48px;

        @media (max-width: 768px) {
            margin-bottom: 32px;
        }
    }
}

.solutions-features .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;

    @media (max-width: 992px) {
        padding: 0 48px;
    }
    @media (max-width: 640px) {
        padding: 0 20px;
    }
}

.solutions-features__header {
    text-align: center;
    margin-bottom: 80px;

    @media (max-width: 768px) {
        margin-bottom: 60px;
    }
}

.solutions-features__title {
    color: var(--text-icon-emphasize, #202223);
    font-family: 'Plus Jakarta Sans';
    font-size: 48px;
    font-style: normal;
    font-weight: 800;
    line-height: 56px;
    margin-bottom: 12px;

    @media (max-width: 768px) {
        font-size: 32px;
        line-height: 40px;
        margin-bottom: 16px;
    }

    & span {
        color: var(--Fills-Action, #1d4ed8);
    }
}

.solutions-features__subtitle {
    color: var(--text-icon-secondary, #636c7a);
    font-family: Inter;
    font-size: 20px;
    font-style: normal;
    font-weight: 400;
    line-height: 28px;
    max-width: 800px;
    margin: 0 auto;

    @media (max-width: 768px) {
        font-size: 18px;
        line-height: 26px;
    }
}

/* Desktop Layout - 3 columns with specific arrangement */
.solutions-features__desktop-layout {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 32px;
    align-items: stretch;
    @media (max-width: 968px) {
        display: none;
    }
}

/* Mobile/Tablet Masonry Layout */
.solutions-features__masonry-layout {
    display: none;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    align-items: stretch;
    @media (max-width: 968px) {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
    @media (max-width: 640px) {
        grid-template-columns: 1fr;
    }
}

.solutions-features__masonry-column {
    display: grid;
    gap: 32px;
    grid-template-columns: 1fr;
}

/* Hide desktop layout and show masonry on smaller screens */

#masonry-item-1 {
    position: relative;
    img {
        margin-bottom: -7px;
    }
}

#masonry-item-3 {
    position: relative;
    &::before {
        content: '';
        position: absolute;
        right: 0;
        bottom: 0px;
        width: 100%;
        height: 30px;
        z-index: 2;
        background: linear-gradient(
            180deg,
            rgba(198, 200, 215, 0) 0%,
            rgba(198, 200, 215, 0.24) 100%
        );
    }
    img {
        margin-bottom: -7px;
    }
}

/* Single column on mobile */
@media (max-width: 640px) {
    .why-business-choose-grid__masonry-layout {
        grid-template-columns: 1fr;
        display: flex;
        flex-direction: column;
        gap: 32px;
    }

    .why-business-choose-grid__masonry-column {
        grid-template-columns: 1fr;
        display: contents;
    }

    /* Reorder items: 1, 3, 4, 2, 5 */
    #masonry-item-1 {
        order: 1;
    }
    #masonry-item-3 {
        order: 2;
    }
    #masonry-item-4 {
        order: 3;
    }
    #masonry-item-2 {
        order: 4;
    }
    #masonry-item-5 {
        order: 5;
    }
}

.solutions-features__column {
    display: flex;
    flex-direction: column;
    gap: 32px;
    height: 100%;
    min-height: 100%;
}

.solutions-features__item {
    background: var(--surface-secondary, #f9f9fc);
    border-radius: 16px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    gap: 32px;
}

.solutions-features__item.top {
    flex-direction: column-reverse;
}

.solutions-features__item-image {
    img {
        width: 100%;
        height: auto;
        display: block;
    }
}

.solutions-features__item-image.badges {
    width: 236px;
    height: 100px;
    margin: 0 auto;
}

.solutions-features__item-title {
    color: var(--text-icon-emphasize, #202223);
    font-family: 'Plus Jakarta Sans';
    font-size: 20px;
    font-style: normal;
    font-weight: 700;
    line-height: 28px; /* 140% */
    margin-bottom: 12px;
    letter-spacing: 0;

    @media (max-width: 768px) {
        font-size: 18px;
        line-height: 28px;
        margin-bottom: 12px;
    }
}

.solutions-features__item-text {
    color: var(--text-icon-distinct, #6e7191);
    font-family: Inter;
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: 28px; /* 155.556% */
    margin-bottom: 0;
}
