/*
 * rm/feature-rows (Platform). Values from staging Platform
 * post-293.css and getComputedStyle at 1440 / 390 (Elementor image-box rows):
 *   row section: background #fff, padding 6% 12% 5% (image right) or 6% 12% 0 (image left);
 *     inner column padding 0 8%.
 *   image box: image 251px (27.3%) with margin 40px on the right side, about 340–352px
 *     (37%) with margin 20px on the left side; vertically centred with the copy.
 *   title: Work Sans 20.592/600, line-height 22.88px, #5E55FC, margin 20.592px 0;
 *   text: Roboto 17.6px, line-height 22.88px, #292929.
 *   buttons (parts/feature-button, colours in page-hero.css): image right → under the copy,
 *     left (margin-top 5px); image left → a 50px bar of their own, right-aligned with its
 *     right edge 205.5px from the viewport edge (container margin 107.5px + padding 98px).
 *   ≤767: each row margin-top 35%, padding 0 5%, inner margin-top 9%, image above the copy,
 *     buttons stacked (right-aligned bar for image-left rows).
 * Rows without an image (Platform) are text only; staging shows an empty placeholder image.
 */

.rm-feature-row {
    position: relative;
    padding: 6% calc(var(--rm-bleed) + var(--rm-frame) * .12) 5%;
    background: var(--rm-white);
}

.rm-feature-row--image-left {
    padding-bottom: 0;
}

.rm-feature-row__body {
    display: flex;
    align-items: center;
    padding: 0 8%;
}

    .rm-feature-row--image-right .rm-feature-row__body {
    flex-direction: row-reverse;
}

.rm-feature-row__media {
    flex: 0 0 37%;
    margin: 0 20px 0 0;
}

.rm-feature-row--image-right .rm-feature-row__media {
    flex-basis: 27.32%;
    margin: 0 0 0 40px;
}

.rm-feature-row__image {
    display: block;
    width: 100%;
    height: auto;
    transition: transform .3s;
}

.rm-feature-row__image:hover {
    transform: scale(1.1);
}

.rm-feature-row__content {
    flex: 1 1 auto;
    min-width: 0;
}

.rm-feature-row__title {
    margin: 20.592px 0;
    color: var(--rm-blurple);
    font-family: var(--rm-font);
    font-size: 20.592px;
    font-weight: 600;
    line-height: 22.88px;
}

.rm-feature-row__text {
    margin: 0;
    color: var(--rm-black);
    font-family: Roboto, var(--rm-font-helvetica);
    font-size: 17.6px;
    line-height: 22.88px;
}

.rm-feature-row__buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.rm-feature-row--image-right .rm-feature-row__buttons {
    margin-top: 5px;
    padding: 0 8%;
}

.rm-feature-row--image-left .rm-feature-row__buttons {
    justify-content: flex-end;
    min-height: 50px;
    padding: 0 2.99% 0 0;
}

/* Platform: the first row's image has a 50px gap */
.rm-feature-rows--platform.rm-feature-rows--rows .rm-feature-row:first-child .rm-feature-row__media {
    margin-right: 50px;
}

@media (max-width: 1024px) {
    .rm-feature-row {
        padding-right: 6%;
        padding-left: 6%;
    }

    .rm-feature-row__body,
    .rm-feature-row--image-right .rm-feature-row__buttons {
        padding-right: 4%;
        padding-left: 4%;
    }
}

@media (max-width: 767px) {
    .rm-feature-row {
        margin-top: 35%;
        padding: 0 5%;
    }

    .rm-feature-row__body,
    .rm-feature-row--image-right .rm-feature-row__body {
        flex-direction: column;
        align-items: stretch;
        margin-top: 9%;
        padding: 0;
    }

    .rm-feature-row__media,
    .rm-feature-row--image-right .rm-feature-row__media,
    .rm-feature-rows--platform.rm-feature-rows--rows .rm-feature-row:first-child .rm-feature-row__media {
        flex: none;
        margin: 0 0 6px;
    }

    .rm-feature-row__buttons,
    .rm-feature-row--image-right .rm-feature-row__buttons {
        flex-direction: column;
        align-items: flex-start;
        margin: 20px 0 0;
        padding: 0;
    }

    .rm-feature-row--image-left .rm-feature-row__buttons {
        align-items: flex-end;
        margin: 35% 0 0;
        padding: 0;
    }

    .rm-feature-row__buttons .rm-fbtn-wrap + .rm-fbtn-wrap {
        margin-left: 0;
    }
}

/* Platform: the first row follows the analytics cards with no top padding (5a0c8388) */
.rm-feature-rows--platform.rm-feature-rows--rows .rm-feature-row:first-child {
    padding-top: 0;
}
