/**
 * Aimstyle – Retention Boxes widget.
 *
 * Original HTML-widget design; already scoped to .retention-boxes.
 * Elementor Style controls set custom properties on the widget; var()
 * fallbacks keep the original values.
 */

.retention-boxes {
    --navy: #06293d;
    --green: #00833e;
    --text: #6b7c88;
    --line: rgba(6, 41, 61, 0.08);
    --bg: #f8fbfc;
}

.retention-boxes,
.retention-boxes *,
.retention-boxes *::before,
.retention-boxes *::after {
    box-sizing: border-box;
    font-family: inherit;
}

.retention-boxes {
    width: 100%;
}

.retention-boxes__list {
    display: flex;
    flex-direction: column;
    gap: 22px;
    width: 100%;
}

.retention-boxes__item {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    width: 100%;
    padding: 26px 28px;
    border-radius: 24px;
    background: linear-gradient(180deg, var(--rb-bg-top, #ffffff) 0%, var(--rb-bg-bottom, #f8fbfc) 100%);
    border: 1px solid var(--line);
    box-shadow: 0 12px 30px rgba(6, 41, 61, 0.08);
    overflow: hidden;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.retention-boxes__item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(180deg, var(--green) 0%, var(--navy) 100%);
}

.retention-boxes__item::after {
    content: "";
    position: absolute;
    right: -60px;
    top: -60px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(0, 131, 62, 0.08) 0%,
        rgba(0, 131, 62, 0) 70%
    );
    pointer-events: none;
}

.retention-boxes__item:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 38px rgba(6, 41, 61, 0.12);
    border-color: rgba(0, 131, 62, 0.18);
}

.retention-boxes__num {
    flex: 0 0 58px;
    width: 58px;
    height: 58px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--rb-num-bg, rgba(0, 131, 62, 0.08));
    color: var(--rb-num-color, var(--green));
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    position: relative;
    z-index: 2;
    transition: all 0.35s ease;
}

.retention-boxes__item:hover .retention-boxes__num {
    background: var(--green);
    color: #fff;
}

.retention-boxes__content {
    position: relative;
    z-index: 2;
    min-width: 0;
    flex: 1;
}

.retention-boxes__title {
    margin: 0 0 10px;
    color: var(--navy);
    font-size: 31px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.4px;
    text-transform: none;
}

.retention-boxes__text {
    margin: 0;
    color: var(--text);
    font-size: 18px;
    line-height: 1.7;
}

/* Tablet */
@media (max-width: 1024px) {
    .retention-boxes__item {
        padding: 24px;
        gap: 18px;
        border-radius: 20px;
    }

    .retention-boxes__title {
        font-size: 27px;
    }

    .retention-boxes__text {
        font-size: 17px;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .retention-boxes__list {
        gap: 16px;
    }

    .retention-boxes__item {
        padding: 20px 18px;
        gap: 16px;
        border-radius: 18px;
    }

    .retention-boxes__num {
        width: 50px;
        height: 50px;
        flex-basis: 50px;
        border-radius: 14px;
        font-size: 16px;
    }

    .retention-boxes__title {
        font-size: 22px;
        margin-bottom: 8px;
    }

    .retention-boxes__text {
        font-size: 15px;
        line-height: 1.6;
    }
}
