@import url("../../share/colors.css");

:root {

    /* Spacing */
    --space-4: 4px;
    --space-8: 8px;
    --space-12: 12px;
    --space-16: 16px;
    --space-24: 24px;
    --space-40: 40px;

    --transition: 0.4s ease;

}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.key-benefits {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 40px;
}

.key-benefits__heading {
    color: var(--Text-Dark, #0F1C3F);
    text-align: center;
    font-size: 56px;
    font-style: normal;
    font-weight: 700;
    line-height: 114%; /* 63.84px */
    letter-spacing: -0.56px;
    margin-bottom: 16px;
}

.key-benefits__note {
    color: var(--Extended-Muted-Blue-Gray, #41537A);
    text-align: center;
    font-size: 20px;
    font-style: normal;
    font-weight: 500;
    line-height: 150%; /* 30px */
    max-width: 420px;
}


.key-benefits__card-list {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    width: 100%;
}

.card {
    flex: 1;
    min-width: 240px;
    max-width: 92vw;
    padding: 32px;
    border-radius: 28px;
    background: var(--Brand-Primary-Lighter, #F6F7FF);


    position: relative;
    background: #f4f5fb;
    overflow: hidden;
    isolation: isolate;
    cursor: default;
    transition: all var(--transition);
}

.card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: url('img/card-bg.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity var(--transition);
}

.card:hover::before {
    opacity: 1;
}

.card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 48px;
}

.badge {

}

.badge {
    padding: 8px 12px;
    align-items: center;
    gap: 6px;
    background: var(--Brand-Primary-10, rgba(17, 42, 212, 0.10));
    width: fit-content;
    background: linear-gradient(107deg, #1229D5 17.96%, #17258E 99.99%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    border: 1px solid var(--Brand-Primary-5, rgba(17, 42, 212, 0.05));
    background: var(--Brand-Primary-10, rgba(17, 42, 212, 0.10));
    font-size: 14px;
    display: inline-flex;
    color: #4a3df0;
    border-radius: 999px;
    transition: all var(--transition);
}


.card:hover .badge {
    border-radius: 50px;
    border: 1px solid var(--BG-White-60, rgba(255, 255, 255, 0.60));
    background: var(--BG-White-6, rgba(255, 255, 255, 0.06));
    color: var(--BG-White, #FFF);
    transition: all var(--transition);
}


.badge__text {
    background: linear-gradient(107deg, #1229D5 17.96%, #17258E 99.99%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 14px;
    font-style: normal;
    font-weight: 700;
    line-height: 140%; /* 19.6px */
    transition: all var(--transition);
}


.card:hover .badge__text {
    background: var(--BG-White, #FFF);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all var(--transition);

}

.badge__icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;

}

.icon-btn {
    display: flex;
    width: 44px;
    height: 44px;
    justify-content: center;
    align-items: center;
    border: 1px solid #1229d529;
    background: linear-gradient(107deg, rgba(18, 41, 213, 0.05) 17.96%, rgba(23, 37, 142, 0.05) 99.99%);
    border-radius: 50%;
    flex-shrink: 0;
    transition: transform var(--transition);
}

.icon-btn svg {
    width: 20px;
    height: 20px;
    color: #4a3df0;
}

.card:hover .icon-btn {
    transform: rotate(180deg);
    border: 1px solid var(--BG-White, #FFF);
    background: var(--BG-White-6, rgba(255, 255, 255, 0.06));
    transition: transform var(--transition);
}

.card:hover .icon-btn svg {
    color: var(--BG-White, #FFF);
}

p.title {
    color: var(--Text-Primary, #202D4E);
    font-size: 32px;
    font-style: normal;
    font-weight: 700;
    line-height: 120%; /* 38.4px */
    letter-spacing: -0.064px;
    margin-bottom: 8px;
}


.card:hover p.title {
    color: var(--BG-White, #FFF);
}

p.subtitle {
    color: var(--Text-Primary, #202D4E);
    opacity: 0.75;
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: 155%; /* 21.7px */
    max-width: 230px;
}


.card:hover p.subtitle {
    color: var(--BG-White, #FFF);
    opacity: 0.75;
}

@media (max-width: 1024px) {
    .key-benefits__heading {
        font-size: 42px;
        font-style: normal;
        font-weight: 700;
        line-height: 116%; /* 48.72px */
        letter-spacing: -0.21px;
    }
    .key-benefits__note {
        font-size: 18px;
        font-style: normal;
        font-weight: 700;
        line-height: 133%; /* 23.94px */
    }
    .card {
        padding: 22px;
    }
    .card__top {
        margin-bottom: 24px;
    }
    .badge__text {
        font-size: 12px;
        font-style: normal;
        font-weight: 700;
        line-height: 130%; /* 15.6px */
        letter-spacing: 0.12px;
    }

    p.title {
        font-size: 24px;
        font-style: normal;
        font-weight: 700;
        line-height: 124%; /* 29.76px */
        letter-spacing: -0.072px;
    }

    p.subtitle {
        font-size: 12px;
        font-style: normal;
        font-weight: 500;
        line-height: 150%; /* 18px */
    }
    .badge__icon {
        width: 16px;
        height: 16px;
    }
    .icon-btn {
        width: 32px;
        height: 32px;
    }
    .icon-btn svg {
        width: 13px;
        height: 13px;
    }
}

@media (max-width: 574px) {
    .key-benefits__header {
        width: 100%;
    }
    .key-benefits__heading {
        font-size: 32px;
        font-style: normal;
        font-weight: 700;
        line-height: 118%; /* 37.76px */
        letter-spacing: -0.16px;
        text-align: left;
        margin-bottom: 12px;
    }
    .key-benefits__note {
        font-size: 14px;
        font-style: normal;
        font-weight: 500;
        line-height: 150%; /* 21px */
        text-align: left;
        width: 240px;
    }
    .card {
        padding: 24px;
        width: 100%;
    }
    .card__top {
        margin-bottom: 16px;
    }
    .badge__text {
        font-size: 10px;
        font-style: normal;
        font-weight: 700;
        line-height: 140%; /* 14px */
    }

    p.title {
        font-size: 24px;
        font-style: normal;
        font-weight: 700;
        line-height: 124%; /* 29.76px */
        letter-spacing: -0.072px;
    }

    p.subtitle {
        font-size: 12px;
        font-style: normal;
        font-weight: 500;
        line-height: 150%; /* 18px */
    }
    .badge__icon {
        width: 16px;
        height: 16px;
    }
    .icon-btn {
        width: 32px;
        height: 32px;
    }
    .icon-btn svg {
        width: 13px;
        height: 13px;
    }
}