@use "../abstracts" as vars;

.benefits1 {

    &__wrap {
        background-color: vars.$color-bg2;
        position: relative;
        overflow: hidden;
        border-radius: 30px;

        &::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(46.05deg, #191825 61.58%, rgba(25, 24, 37, 0) 85.17%);
            z-index: 2;
        }
    }

    &__bg {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 1;
        opacity: 0.3;

        img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
    }

    &__shape {
        position: absolute;
        z-index: 2;
        pointer-events: none;

        &-1 {
            top: 5%;
            left: 0;
            z-index: 2;
        }

        &-2 {
            bottom: 0%;
            left: 0%;
            z-index: 3;
        }

        &-3 {
            bottom: 0%;
            right: 0;
            z-index: 3;
        }

        img {
            max-width: 100%;
        }
    }

    .container {
        position: relative;
        z-index: 3;
    }

    &__content-top {
        margin-bottom: vars.rem(80);

        @media (max-width: 1199px) {
            margin-bottom: vars.rem(40);
        }

        @media (max-width: 768px) {
            margin-bottom: vars.rem(20);
        }
    }

    &__subtitle {
        color: vars.$color-primary;
    }

    &__title {
        color: vars.$color-white;
    }

    &__description {
        color: vars.$color-text2;
        font-size: vars.rem(18);
        line-height: 1.6;
        margin-top: vars.rem(20);

        @media (max-width: 1399px) {
            font-size: vars.rem(16);
            line-height: 1.5;
        }

        @media (min-width: 992px) {
            margin-top: 0;
            padding-left: vars.rem(50);
        }
    }

    &__image-box {
        position: relative;
        margin-bottom: vars.rem(60);

        @media (min-width: 992px) {
            margin-bottom: 0;
        }
    }

    &__car-img {
        width: 100%;
        margin-left: -100px;
        display: block;
        transition: transform 0.5s ease;

        @media (max-width: 1399px) {
            margin-left: 0;
            max-width: 80%;
        }

        &:hover {
            transform: translateY(-5px);
        }
    }

    &__cta-box {
        background-color: #2b2a36;
        padding: vars.rem(30) vars.rem(40);
        border-radius: vars.rem(15);
        display: flex;
        align-items: flex-start;
        gap: vars.rem(25);
        margin-bottom: vars.rem(-240);
        width: 100%;
        max-width: vars.rem(500);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);

        @media (max-width: 1399px) {
            margin-bottom: vars.rem(-140);
            flex-wrap: wrap;
            padding: 15px;
        }

        @media (max-width: 768px) {
            position: relative;
            margin-bottom: 0;
            width: 100%;
            margin-top: vars.rem(30);
            max-width: 100%;
        }

        .icon {
            width: vars.rem(70);
            height: vars.rem(70);
            flex-shrink: 0;
            display: flex;
            align-items: center;
            justify-content: center;

            img {
                width: 100%;
                height: 100%;
                object-fit: contain;
            }
        }

        .text {
            flex-grow: 1;

            p {
                color: vars.$color-white;
                font-family: vars.$font-family-base;
                font-weight: 700;
                font-size: vars.rem(24);
                line-height: 34px;
                letter-spacing: -2%;
                margin-bottom: vars.rem(20);

                @media (max-width: 1399px) {
                    font-size: vars.rem(20);
                    line-height: 30px;
                }

                @media (max-width: 768px) {
                    font-size: vars.rem(16);
                    line-height: 24px;
                }
            }
        }

        .btn-wrap {
            a {
                display: inline-flex;
                align-items: center;
                gap: vars.rem(15);
                background-color: vars.$color-primary;
                color: vars.$color-white;
                padding: vars.rem(18) vars.rem(35);
                border-radius: vars.rem(40) 0 0 vars.rem(40);
                font-weight: 700;
                font-size: vars.rem(15);
                transition: all 0.3s;
                position: relative;
                margin-right: vars.rem(30);

                &::after {
                    content: '';
                    position: absolute;
                    right: vars.rem(-30);
                    top: 0;
                    width: vars.rem(60);
                    height: 100%;
                    background-color: #191825;
                    border-radius: 50%;
                    z-index: 1;
                    clip-path: polygon(50% 0%, 100% 0%, 100% 100%, 50% 100%);
                }

                i {
                    position: relative;
                    z-index: 2;
                }

                &:hover {
                    background-color: vars.$color-white;
                    color: vars.$color-primary;
                    text-decoration: none;
                }
            }
        }
    }

    &__card {
        background-color: vars.$color-white;
        padding: vars.rem(50);
        border-radius: vars.rem(20);
        box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);

        @media (max-width: 1399px) {
            padding: vars.rem(15);
        }
    }

    &__list {
        list-style: none;
        padding: 0;
        margin: 0;

        li {
            display: flex;
            align-items: center;
            gap: vars.rem(20);
            background-color: #f1f6ff;
            padding: vars.rem(25);
            border-radius: vars.rem(12);
            margin-bottom: vars.rem(20);
            color: vars.$color-heading;
            font-weight: 600;
            font-size: vars.rem(18);
            transition: all 0.3s ease;

            @media (max-width: 1399px) {
                padding: vars.rem(15);
                font-size: vars.rem(14);
            }

            @media (max-width: 768px) {
                padding: vars.rem(10);
                font-size: vars.rem(12);
            }

            &:last-child {
                margin-bottom: 0;
            }

            .check-icon {
                width: vars.rem(30);
                height: vars.rem(30);
                background-color: vars.$color-primary;
                color: vars.$color-white;
                border-radius: 50%;
                display: flex;
                align-items: center;
                justify-content: center;
                font-size: vars.rem(14);
                flex-shrink: 0;
                box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);

                @media (max-width: 768px) {
                    width: vars.rem(20);
                    height: vars.rem(20);
                    font-size: vars.rem(10);
                }
            }

            &.active {
                background-color: vars.$color-primary;
                color: vars.$color-white;
                transform: scale(1.02);

                .check-icon {
                    background-color: vars.$color-white;
                    color: vars.$color-primary;
                    box-shadow: none;
                }
            }

            &:hover:not(.active) {
                background-color: #e8f0ff;
                transform: translateX(5px);
            }
        }
    }
}